Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if( MSVC )
endif( MSVC )

# Required for GenerateExportHeader module
include( GenerateExportHeader )
#include( GenerateExportHeader )

# Activate GCC C++11 support for CMake versions before v3.1
if( CMAKE_VERSION VERSION_LESS 3.1 )
Expand Down Expand Up @@ -120,6 +120,8 @@ set( ACIS_SOURCES_Modeler
src/acis_modeler.h
src/acis_api.cpp
src/acis_api.h
src/acis_api2.cpp
src/acis_api2.h
src/acis_classes.cpp
src/acis_classes.h
src/acis_entity.cpp
Expand All @@ -135,7 +137,7 @@ set( ACIS_SOURCES_Modeler
# Generate Python module
add_library( Modeler SHARED ${ACIS_SOURCES_Modeler} )

# Set link targets. Note that Modeler has dependencies towards most helper modules.
# Set link targets
target_link_libraries( Modeler ${ACIS_LINK_LIBRARIES} ${PYTHON_LIBRARIES} )

# Add the build location to the include directories
Expand Down Expand Up @@ -236,6 +238,7 @@ add_custom_target( uninstall

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

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

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

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

#
# Create a custom install target for calling inside Jetbrains CLion
# Create a custom install target for calling from IDEs
# This target installs the module and example scripts to the user-specified directory
#
add_custom_target( install_${PROJECT_NAME}
add_custom_target( install_project
$(CMAKE_COMMAND) --build . --target install
COMMENT "Installing ${PROJECT_NAME}..."
)
12 changes: 11 additions & 1 deletion FUNCTION_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
* get_owner_transf
* api_get_faces
* api_get_edges
* api_get_loops
* api_save_entity_list
* api_restore_entity_list
* api_set_file_info
* api_get_file_info
* api_save_version
Expand All @@ -55,7 +57,13 @@
* api_boolean_chop_body
* api_make_sweep_path
* api_sweep_with_options

* api_logging
* api_get_entity_id
* api_body_to_1d
* api_body_to_2d
* api_get_entity_box (ENTITY overload)
* api_closed_wire
* get_face_box

## Classes

Expand Down Expand Up @@ -86,6 +94,8 @@
* FileInfo
* sweep_options
* make_sweep_path_options
* BoolOptions
* SPAboxing_options

## Enums

Expand Down
2 changes: 1 addition & 1 deletion examples/02_boolean_subtract.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
Modeler.api_apply_transf(cylinder, cylinder_transf)

# Subtract frustum from cuboid
Booleans.api_subtract(cylinder, block)
Modeler.api_subtract(cylinder, block)

# Assign attributes after generation
block.name = "Drilled Cuboid"
Expand Down
Loading