Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 244b53c

Browse files
authored
Merge pull request #7 from orbingol/devmaster
Update master branch with new functions
2 parents eee323c + 6a95b21 commit 244b53c

File tree

12 files changed

+1923
-1080
lines changed

12 files changed

+1923
-1080
lines changed

CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if( MSVC )
2424
endif( MSVC )
2525

2626
# Required for GenerateExportHeader module
27-
include( GenerateExportHeader )
27+
#include( GenerateExportHeader )
2828

2929
# Activate GCC C++11 support for CMake versions before v3.1
3030
if( CMAKE_VERSION VERSION_LESS 3.1 )
@@ -120,6 +120,8 @@ set( ACIS_SOURCES_Modeler
120120
src/acis_modeler.h
121121
src/acis_api.cpp
122122
src/acis_api.h
123+
src/acis_api2.cpp
124+
src/acis_api2.h
123125
src/acis_classes.cpp
124126
src/acis_classes.h
125127
src/acis_entity.cpp
@@ -135,7 +137,7 @@ set( ACIS_SOURCES_Modeler
135137
# Generate Python module
136138
add_library( Modeler SHARED ${ACIS_SOURCES_Modeler} )
137139

138-
# Set link targets. Note that Modeler has dependencies towards most helper modules.
140+
# Set link targets
139141
target_link_libraries( Modeler ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} )
140142

141143
# Add the build location to the include directories
@@ -236,6 +238,7 @@ add_custom_target( uninstall
236238

237239
#
238240
# Generate a "complete install" target
241+
# This target installs the module to Python's site-packages directory by creating a .pth file
239242
#
240243

241244
# Run INSTALL target and then, generate .pth file in the site-packages directory
@@ -247,6 +250,7 @@ add_custom_target( install_module
247250

248251
#
249252
# Generate a "complete uninstall" target
253+
# This target uninstalls the module from Python's site-packages directory by deleting the .pth file
250254
#
251255

252256
# Run UNINSTALL target and remove .pth file generated by the "install_module" target
@@ -268,9 +272,10 @@ set_property(
268272
)
269273

270274
#
271-
# Create a custom install target for calling inside Jetbrains CLion
275+
# Create a custom install target for calling from IDEs
276+
# This target installs the module and example scripts to the user-specified directory
272277
#
273-
add_custom_target( install_${PROJECT_NAME}
278+
add_custom_target( install_project
274279
$(CMAKE_COMMAND) --build . --target install
275280
COMMENT "Installing ${PROJECT_NAME}..."
276281
)

FUNCTION_REFERENCE.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
* get_owner_transf
4545
* api_get_faces
4646
* api_get_edges
47+
* api_get_loops
4748
* api_save_entity_list
49+
* api_restore_entity_list
4850
* api_set_file_info
4951
* api_get_file_info
5052
* api_save_version
@@ -55,7 +57,13 @@
5557
* api_boolean_chop_body
5658
* api_make_sweep_path
5759
* api_sweep_with_options
58-
60+
* api_logging
61+
* api_get_entity_id
62+
* api_body_to_1d
63+
* api_body_to_2d
64+
* api_get_entity_box (ENTITY overload)
65+
* api_closed_wire
66+
* get_face_box
5967

6068
## Classes
6169

@@ -86,6 +94,8 @@
8694
* FileInfo
8795
* sweep_options
8896
* make_sweep_path_options
97+
* BoolOptions
98+
* SPAboxing_options
8999

90100
## Enums
91101

examples/02_boolean_subtract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Modeler.api_apply_transf(cylinder, cylinder_transf)
3939

4040
# Subtract frustum from cuboid
41-
Booleans.api_subtract(cylinder, block)
41+
Modeler.api_subtract(cylinder, block)
4242

4343
# Assign attributes after generation
4444
block.name = "Drilled Cuboid"

0 commit comments

Comments
 (0)