![]() |
NDEVR
API Documentation
|
Logic for slicing one or more Model/Geometry objects into polyline cross-section Model/Geometry objects based on configured slice criteria. More...
Static Public Member Functions | |
| static void | CreateActiveLinework (SlicerArgs &args) |
| Main entry point that slices the specified models and writes the resulting linework into the output root model. | |
| static constexpr StringView | SliceTypeName () |
| Returns the identifier string used to tag polyline slice operations. | |
Static Protected Member Functions | |
| static void | AddVertices (Geometry &geo, const SlicePlane &plane, const Matrix< fltp08 > &mat) |
| Adds the vertices from a SlicePlane into a Geometry object, applying the given transformation matrix. | |
| static void | FinishSegmenting (const Matrix< fltp08 > &transform, Model &model, uint04 slice_index, PolylineSliceCache ¶ms) |
| Finalizes segmenting for a slice by organizing polyline segments and writing them into the output model geometry. | |
| static void | PreparePointCache (const Matrix< fltp08 > &transform, const Model &model, PolylineSliceCache ¶ms) |
| Extracts and transforms points from a Model into the slice cache and builds the point spatial index. | |
| static void | PrepareTriCache (const Matrix< fltp08 > &transform, const Geometry &geo, PolylineSliceCache ¶ms) |
| Extracts and transforms triangles from a Geometry object into the slice cache and builds the triangle spatial index. | |
| static void | SliceIntoLineSegments (uint04 slice_index, PolylineSliceCache &args) |
| Performs plane-triangle intersection for a single slice, producing polyline segments. | |
| static void | SliceIntoNearPoints (uint04 slice_index, PolylineSliceCache &args, fltp08 point_distance) |
| Collects points near a slice plane within the configured distance threshold. | |
Logic for slicing one or more Model/Geometry objects into polyline cross-section Model/Geometry objects based on configured slice criteria.
Provides static methods to orchestrate the full slicing pipeline: preparing geometry caches, performing plane-triangle intersections, collecting nearby points, and writing the results into output models.
Definition at line 171 of file PolylineSlicer.h.
|
staticprotected |
Adds the vertices from a SlicePlane into a Geometry object, applying the given transformation matrix.
| [in] | geo | The target geometry to add vertices to |
| [in] | plane | The slice plane containing the vertices to add |
| [in] | mat | The transformation matrix to apply to the vertices |
|
static |
Main entry point that slices the specified models and writes the resulting linework into the output root model.
| [in] | args | The slicing arguments including models, iterator, and options |
|
staticprotected |
Finalizes segmenting for a slice by organizing polyline segments and writing them into the output model geometry.
| [in] | transform | The transform to apply to the output |
| [in] | model | The output model to receive the slice geometry |
| [in] | slice_index | Index of the slice plane being finalized |
| [in] | params | The slice cache containing the computed slice data |
|
staticprotected |
Extracts and transforms points from a Model into the slice cache and builds the point spatial index.
| [in] | transform | The world transform to apply to the model |
| [in] | model | The source model to extract points from |
| [in] | params | The slice cache to populate with point data |
|
staticprotected |
Extracts and transforms triangles from a Geometry object into the slice cache and builds the triangle spatial index.
| [in] | transform | The world transform to apply to the geometry |
| [in] | geo | The source geometry to extract triangles from |
| [in] | params | The slice cache to populate with triangle data |
|
staticprotected |
Performs plane-triangle intersection for a single slice, producing polyline segments.
| [in] | slice_index | Index of the slice plane to process within the cache |
| [in] | args | The slice cache containing triangles and spatial indices |
|
staticprotected |
Collects points near a slice plane within the configured distance threshold.
| [in] | slice_index | Index of the slice plane to process within the cache |
| [in] | args | The slice cache containing points and spatial indices |
| [in] | point_distance | Maximum distance from the plane for a point to be included |
|
inlinestaticconstexpr |
Returns the identifier string used to tag polyline slice operations.
Definition at line 185 of file PolylineSlicer.h.