Construct a geometry extraction from an AP214 step model and conway model
Whether to limit the depth of CSG operations.
The maximum depth for CSG operations when limit CSG depth is used, or the maximum level for CSG memoization if it is not.
Whether to enable low memory mode for geometry extraction.
ReadonlycsgReadonlycurvesReadonlygeometryCount of representation items by AP214 entity type name — the geometry breakdown for the load report (issue #301 follow-up). Copied into Statistics by the loader/proxies after extraction.
ReadonlymaterialsReadonlymodelReadonlyproductReadonlysceneProcess the transforms for a shape relationship.
The shape relationship to process.
The source shape.
The target shape.
The owning local ID.
When the caller swapped the relationship's rep_1/rep_2 reading (a parent-first assembly placement — see the CDSR orientation check), the item_defined_transformation's placement pair must swap with it: transform_item_1 lives in rep_1's context and transform_item_2 in rep_2's, and the composed transform must always map the child (source) frame into the parent (target) frame.
The transform and a boolean indicating if the processing should continue inside the loop.
Extract the geometry data from the AP214
boolean - print execution time (default no)
Extract a placement, adding it to the scene.
The transform to extract.
The parent's local ID.
Extract a placement (no memoization/scene creation)
The transform to extract.
The parent's local ID.
{true} Only extract, don't memoize and add to the scene
The extracted placement.
Extract a placement, adding it to the scene.
The transform to extract.
The parent's local ID.
OptionalmappedItem: booleanExtract a placement (no memoization/scene creation)
The transform to extract.
The parent's local ID.
{true} Only extract, don't memoize and add to the scene
OptionalmappedItem: booleanThe extracted placement.
Exctact a BSpline Curve
The bspline curve, potentially with knots/rational.
The constructed curve object.
Extracts a 2D Cartesian transformation operator from an AP214 Cartesian transformation operator definition. The transformation can be uniform or non-uniform.
The AP214 Cartesian transformation operator definition, which can be either uniform or non-uniform.
The resulting transformation operator parameters.
Extracts the curve for an ellipse from an AP214 ellipse profile definition.
The AP214 ellipse profile definition to extract the curve from.
A CurveObject representing the ellipse curve, or undefined if not extractable.
Extract a line
The line to extract.
OptionalparametersTrimmedCurve: ParamsGetIfcTrimmedCurveThe curve object for the line.
Extract a mapped item to add its transform to instance an item.
The mapped item to extract.
OptionalowningElementLocalID: numberThe parent mapped items, if any.
Extract a placement, adding it to the scene.
The placement to extract.
Whether the placement is a mapped item.
The extracted placement or undefined if the placement is not a axis2_placement_3d.
Extract a canonical profile from a profile definition.
The profile definition to extract from.
The extracted profile, or undefined if one cannot be extracted.
Extract a representation item, including its geometry if necessary, adding it to the current scene walk.
Note - memoized result for instancing.
The representation to extract from.
OptionalowningElementLocalID: numberWhether this is a mapped item.
Flush any staged (deferred) face tessellation jobs, tessellating them in parallel on the native thread pool and appending the results to their target geometry objects in staging order.
This must be called before triangle data is read from (or native memory freed for) any geometry that faces have been staged into — i.e. before CSG evaluation and before extraction returns.
Flatten the points into WASM memory (skipping consecutive duplicates). Reuses an existing WASM buffer if provided and large enough.
Array of IfcCartesianPoint
Number of coordinates per point (e.g. 3 for x,y,z)
OptionalexistingPtr: number(Optional) Pointer to an existing WASM buffer
OptionalexistingCapacity: number(Optional) Capacity of that buffer in Float64 elements
pointer, length used, total capacity
Free the native indexed polygon face.
The native item to free.
Optionalinitialize: numberCreate a native vector of indexed polygonal faces uint vector.
OptionalinitialSize: numbernumber - initial size of the vector (optional)
Create a native vector of segments.
Optionalinitialize: numbernumber - initial size of the vector (optional)
Create a native 32bit uint vector.
OptionalinitialSize: numbernumber - initial size of the vector (optional)
Create a native 32bit size_t vector.
OptionalinitialSize: numbernumber - initial size of the vector (optional)
Create a native vector of geometry collections.
A newly initialised native vector of geometry collections
OptionalinitialSize: numbernumber - initial size of the vector (optional)
OptionalinitialSize: numbernumber - initial size of the vector (optional)
OptionalinitialSize: numbernumber - initial size of the vector (optional)
OptionalinitialSize: numbernumber - initial size of the vector (optional)
Create a native vector profile to pass across the boundary.
OptionalinitialSize: numbernumber - initial size of the vector (optional)
Checks if a given point is not present in a collection of points.
The point to check for presence.
A collection of points to compare against.
A boolean indicating whether the point is not present in the collection.
Staticextract
Handles Geometry data extraction from a populated AP214StepModel Can export to OBJ, GLTF (Draco), GLB (Draco)