class compolyx.CADGeometry(graph, obj, visible_sub_shapes=None, parent=None)
Attributes
| Name | Description |
|---|---|
CADGeometry.active | Active status of the object. |
CADGeometry.cad_compounds | Dictionary with all compounds in the CAD Geometry. |
CADGeometry.cad_faces | Dictionary with all face shapes. |
CADGeometry.cad_solids | Dictionary with all solid shapes. |
CADGeometry.cad_surfaces | Dictionary with all shell shapes. |
CADGeometry.changed | Status boolean. |
CADGeometry.display_data | CAD geometry mesh surface plot. |
CADGeometry.element_to_face_map | |
CADGeometry.enabled | Indicates whether the object is enabled. |
CADGeometry.ext_id | External ID of the CAD Geometry object. |
CADGeometry.id | ID of the object. |
CADGeometry.is_dict_item | Indicates whether the object is an item in a dictionary. |
CADGeometry.is_list_item | Indicates whether the object is an item of a list. |
CADGeometry.link_path | Root path of the current node in the tree for links to this object. |
CADGeometry.locked | CAD geometry is generated from an imported geometry and cannot be changed. |
CADGeometry.name | Name of the object. |
CADGeometry.normals_display_data | CAD geometry normals visualization. |
CADGeometry.offset | Offset value used to analyze the surface’s coverage regarding the mesh. |
CADGeometry.parent | Parent object in the tree. |
CADGeometry.path | The file path where the CAD geometry is loaded from. |
CADGeometry.precision | Precision of geometrical operations (intersection points, thickness sampling, …). |
CADGeometry.root_path | Root path of the current node in the tree. |
CADGeometry.root_shapes | Dictionary with all free shapes of the CAD Geometry. |
CADGeometry.scale_factor | Geometry is scaled with this factor. |
CADGeometry.shape_type | Topological type of the shape. |
CADGeometry.show_normals | Visibility of Face Normals. |
CADGeometry.status | Status of the object. |
CADGeometry.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes. |
CADGeometry.sub_shape_selection_display_data | CAD face selection plot. |
CADGeometry.sub_shapes | Sub faces of the CAD Geometry. |
CADGeometry.uid | UID of the object. |
CADGeometry.use_default_offset | Whether to use the default value or not. |
CADGeometry.use_default_precision | Whether to use default precision value or not. |
CADGeometry.vertex | Raises an error if the object has been removed from the graph. |
CADGeometry.visible_sub_shapes | IDs of CAD sub shapes to be displayed, stored per-scene id. |
CADGeometry.visualization_mesh | Visualization mesh of this geometry. |
Methods
| Name | Description |
|---|---|
CADGeometry.add_visible_sub_shapes(…) | |
CADGeometry.added_to_active_set(scene) | |
CADGeometry.clear_visible_sub_shapes(scene) | |
CADGeometry.find_parent(type) | Steps up the tree and returns the first parent with given type. |
CADGeometry.get_face_ids_from_sub_shapes(…) | |
CADGeometry.get_faces_from_sub_shapes(sub_shapes) | |
CADGeometry.get_short_description() | |
CADGeometry.obj_exists() | Checks if __obj still references the c++ object (has not been reset to None by self._delete) and exists in the graph. |
CADGeometry.refresh_external_source([enforce]) | Reload the geometry from the external source. |
CADGeometry.remove_visible_sub_shapes(…) | |
CADGeometry.removed_from_active_set(scene) | |
CADGeometry.save_as(path) | Save the initial geometry file to the specified path. |
CADGeometry.serialize() | |
CADGeometry.serialize_name_and_id() | Serializes the name and ID. |
CADGeometry.update() | |
CADGeometry.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |
CADGeometry.visualization_normals(faces) |