Appearance
Geometry Query
The snaptrude.query.geometry namespace provides functions to extract geometric data from components.
Functions
getBrep(component: Component)
Retrieves the B-Rep (Boundary Representation) of a component.
- Parameters:
component:Component- The component to query.
- Returns:
Brep | undefined- The B-Rep if available.
getBottomContour(component: Component)
Retrieves the bottom 2D contour of a component. Useful for getting the footprint.
- Parameters:
component:Component- The component to query.
- Returns:
Contour | null- The contour if available.