    

 ## On this page

  

 

 # CADGeometry

 Last update: 16.07.2026 

<a id="compolyx.CADGeometry"></a>

### *class* compolyx.CADGeometry(graph, obj, visible\_sub\_shapes=None, parent=None)

### Attributes

NameDescription[`CADGeometry.active`](compolyx.CADGeometry.active.md#compolyx.CADGeometry.active)Active status of the object.[`CADGeometry.cad_compounds`](compolyx.CADGeometry.cad_compounds.md#compolyx.CADGeometry.cad_compounds)Dictionary with all compounds in the CAD Geometry.[`CADGeometry.cad_faces`](compolyx.CADGeometry.cad_faces.md#compolyx.CADGeometry.cad_faces)Dictionary with all face shapes.[`CADGeometry.cad_solids`](compolyx.CADGeometry.cad_solids.md#compolyx.CADGeometry.cad_solids)Dictionary with all solid shapes.[`CADGeometry.cad_surfaces`](compolyx.CADGeometry.cad_surfaces.md#compolyx.CADGeometry.cad_surfaces)Dictionary with all shell shapes.[`CADGeometry.changed`](compolyx.CADGeometry.changed.md#compolyx.CADGeometry.changed)Status boolean.[`CADGeometry.display_data`](compolyx.CADGeometry.display_data.md#compolyx.CADGeometry.display_data)CAD geometry mesh surface plot.[`CADGeometry.element_to_face_map`](compolyx.CADGeometry.element_to_face_map.md#compolyx.CADGeometry.element_to_face_map)[`CADGeometry.enabled`](compolyx.CADGeometry.enabled.md#compolyx.CADGeometry.enabled)Indicates whether the object is enabled.[`CADGeometry.ext_id`](compolyx.CADGeometry.ext_id.md#compolyx.CADGeometry.ext_id)External ID of the CAD Geometry object.[`CADGeometry.id`](compolyx.CADGeometry.id.md#compolyx.CADGeometry.id)ID of the object.[`CADGeometry.is_dict_item`](compolyx.CADGeometry.is_dict_item.md#compolyx.CADGeometry.is_dict_item)Indicates whether the object is an item in a dictionary.[`CADGeometry.is_list_item`](compolyx.CADGeometry.is_list_item.md#compolyx.CADGeometry.is_list_item)Indicates whether the object is an item of a list.[`CADGeometry.link_path`](compolyx.CADGeometry.link_path.md#compolyx.CADGeometry.link_path)Root path of the current node in the tree for links to this object.[`CADGeometry.locked`](compolyx.CADGeometry.locked.md#compolyx.CADGeometry.locked)CAD geometry is generated from an imported geometry and cannot be changed.[`CADGeometry.name`](compolyx.CADGeometry.name.md#compolyx.CADGeometry.name)Name of the object.[`CADGeometry.normals_display_data`](compolyx.CADGeometry.normals_display_data.md#compolyx.CADGeometry.normals_display_data)CAD geometry normals visualization.[`CADGeometry.offset`](compolyx.CADGeometry.offset.md#compolyx.CADGeometry.offset)Offset value used to analyze the surface's coverage regarding the mesh.[`CADGeometry.parent`](compolyx.CADGeometry.parent.md#compolyx.CADGeometry.parent)Parent object in the tree.[`CADGeometry.path`](compolyx.CADGeometry.path.md#compolyx.CADGeometry.path)The file path where the CAD geometry is loaded from.[`CADGeometry.precision`](compolyx.CADGeometry.precision.md#compolyx.CADGeometry.precision)Precision of geometrical operations (intersection points, thickness sampling, ...).[`CADGeometry.root_path`](compolyx.CADGeometry.root_path.md#compolyx.CADGeometry.root_path)Root path of the current node in the tree.[`CADGeometry.root_shapes`](compolyx.CADGeometry.root_shapes.md#compolyx.CADGeometry.root_shapes)Dictionary with all free shapes of the CAD Geometry.[`CADGeometry.scale_factor`](compolyx.CADGeometry.scale_factor.md#compolyx.CADGeometry.scale_factor)Geometry is scaled with this factor.[`CADGeometry.shape_type`](compolyx.CADGeometry.shape_type.md#compolyx.CADGeometry.shape_type)Topological type of the shape.[`CADGeometry.show_normals`](compolyx.CADGeometry.show_normals.md#compolyx.CADGeometry.show_normals)Visibility of Face Normals.[`CADGeometry.status`](compolyx.CADGeometry.status.md#compolyx.CADGeometry.status)Status of the object.[`CADGeometry.status_changed`](compolyx.CADGeometry.status_changed.md#compolyx.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`](compolyx.CADGeometry.sub_shape_selection_display_data.md#compolyx.CADGeometry.sub_shape_selection_display_data)CAD face selection plot.[`CADGeometry.sub_shapes`](compolyx.CADGeometry.sub_shapes.md#compolyx.CADGeometry.sub_shapes)Sub faces of the CAD Geometry.[`CADGeometry.uid`](compolyx.CADGeometry.uid.md#compolyx.CADGeometry.uid)UID of the object.[`CADGeometry.use_default_offset`](compolyx.CADGeometry.use_default_offset.md#compolyx.CADGeometry.use_default_offset)Whether to use the default value or not.[`CADGeometry.use_default_precision`](compolyx.CADGeometry.use_default_precision.md#compolyx.CADGeometry.use_default_precision)Whether to use default precision value or not.[`CADGeometry.vertex`](compolyx.CADGeometry.vertex.md#compolyx.CADGeometry.vertex)Raises an error if the object has been removed from the graph.[`CADGeometry.visible_sub_shapes`](compolyx.CADGeometry.visible_sub_shapes.md#compolyx.CADGeometry.visible_sub_shapes)IDs of CAD sub shapes to be displayed, stored per-scene id.[`CADGeometry.visualization_mesh`](compolyx.CADGeometry.visualization_mesh.md#compolyx.CADGeometry.visualization_mesh)Visualization mesh of this geometry.### Methods

NameDescription[`CADGeometry.add_visible_sub_shapes`](compolyx.CADGeometry.add_visible_sub_shapes.md#compolyx.CADGeometry.add_visible_sub_shapes)(...)[`CADGeometry.added_to_active_set`](compolyx.CADGeometry.added_to_active_set.md#compolyx.CADGeometry.added_to_active_set)(scene)[`CADGeometry.clear_visible_sub_shapes`](compolyx.CADGeometry.clear_visible_sub_shapes.md#compolyx.CADGeometry.clear_visible_sub_shapes)(scene)[`CADGeometry.find_parent`](compolyx.CADGeometry.find_parent.md#compolyx.CADGeometry.find_parent)(type)Steps up the tree and returns the first parent with given type.[`CADGeometry.get_face_ids_from_sub_shapes`](compolyx.CADGeometry.get_face_ids_from_sub_shapes.md#compolyx.CADGeometry.get_face_ids_from_sub_shapes)(...)[`CADGeometry.get_faces_from_sub_shapes`](compolyx.CADGeometry.get_faces_from_sub_shapes.md#compolyx.CADGeometry.get_faces_from_sub_shapes)(sub\_shapes)[`CADGeometry.get_short_description`](compolyx.CADGeometry.get_short_description.md#compolyx.CADGeometry.get_short_description)()[`CADGeometry.obj_exists`](compolyx.CADGeometry.obj_exists.md#compolyx.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`](compolyx.CADGeometry.refresh_external_source.md#compolyx.CADGeometry.refresh_external_source)(\[enforce\])Reload the geometry from the external source.[`CADGeometry.remove_visible_sub_shapes`](compolyx.CADGeometry.remove_visible_sub_shapes.md#compolyx.CADGeometry.remove_visible_sub_shapes)(...)[`CADGeometry.removed_from_active_set`](compolyx.CADGeometry.removed_from_active_set.md#compolyx.CADGeometry.removed_from_active_set)(scene)[`CADGeometry.save_as`](compolyx.CADGeometry.save_as.md#compolyx.CADGeometry.save_as)(path)Save the initial geometry file to the specified path.[`CADGeometry.serialize`](compolyx.CADGeometry.serialize.md#compolyx.CADGeometry.serialize)()[`CADGeometry.serialize_name_and_id`](compolyx.CADGeometry.serialize_name_and_id.md#compolyx.CADGeometry.serialize_name_and_id)()Serializes the name and ID.[`CADGeometry.update`](compolyx.CADGeometry.update.md#compolyx.CADGeometry.update)()[`CADGeometry.visit`](compolyx.CADGeometry.visit.md#compolyx.CADGeometry.visit)(visitor)Walk through the tree and let the visitor perform action on every descendant node.[`CADGeometry.visualization_normals`](compolyx.CADGeometry.visualization_normals.md#compolyx.CADGeometry.visualization_normals)(faces)