Handles Geometry data extraction from a populated AP214StepModel Can export to OBJ, GLTF (Draco), GLB (Draco)

Constructors

Properties

Methods

arrayToSharedHeap arrayToWasmHeap convertPrefix createParamsGetBooleanResultPool createParamsGetPolyCurvePool createParamsGetTriangulatedFaceSetPool createParamsTransformProfilePool destroy dropAllNativeIndexedPolygonalFaceVector dropNonSceneGeometry extractAdvancedFace extractAP214Circle extractAP214FaceBasedSurfaceModel extractAP214FacetedBrep extractAP214GeometryData extractAP214ShellBasedSurfaceModel extractAP214TrimmedCurve extractAxis1Placement3D extractAxis2Placement2D extractAxis2Placement3D extractBooleanOperand extractBooleanResult extractBSplineCurve extractBSplineSurface extractBSplineSurfaceWithKnots extractCartesianTransformOperator2D extractCartesianTransformOperator3D extractCircleCurve extractCompositeCurve extractConnectedFaceSets extractCurve extractCylindricalSurface extractEllipseProfileCurve extractExtrudedAreaSolid extractFace extractFaces extractHalfspaceSolid extractLine extractLoop extractManifoldSolidBrep extractMappedItem extractPlacement extractPlane extractPointList3D extractPointListList3D extractPolyline extractProfile extractPScurve1 extractRationalBSplineSurface extractRepresentationItem extractStyledItem extractSurfaceOfLinearExtrusion extractSurfaceOfRevolution extractSurfaceStyle extractToDoubleVector extractToDoubleVectorVector flattenPointsToFloat32Array freeNativeIndexedPolygonalFaceVector getAP214ProductName getIdentityMatrices getLinearScalingFactor getWasmModule initializeMemoryPools isInitialized nativeBound3DVector nativeIndexedPolygonalFaceVector nativeMaterial nativeSegmentVector nativeUintVector nativeULongVector nativeVectorCurve nativeVectorGeometry nativeVectorGeometryCollection nativeVectorGlmdVec2 nativeVectorGlmdVec3 nativeVectorGlmVec2 nativeVectorGlmVec3 nativeVectorProfile nativeVectorVectorGlmdVec3 notPresent populateStyledItemsMap extractDirection

Constructors

Properties

model: default

Methods

  • Parameters

    • from: circle
    • parametersTrimmedCurve: ParamsGetIfcTrimmedCurve = ...

    Returns undefined | CurveObject

  • Extract a placement, adding it to the scene.

    Parameters

    • from: axis1_placement

      The transform to extract.

    • parentLocalId: number

      The parent's local ID.

    Returns void

  • Extract a placement (no memoization/scene creation)

    Parameters

    • from: axis1_placement

      The transform to extract.

    • parentLocalId: number

      The parent's local ID.

    • extractOnly: true

      {true} Only extract, don't memoize and add to the scene

    Returns ParamsAxis1Placement3D

    The extracted placement.

  • Extract an axis placement 2D native object.

    Parameters

    • from: axis2_placement_2d

      The axis 2 placement to extract.

    Returns NativeTransform3x3

    The native placement transform.

  • Extract a placement, adding it to the scene.

    Parameters

    • from: axis2_placement_3d

      The transform to extract.

    • parentLocalId: number

      The parent's local ID.

    Returns void

  • Extract a placement (no memoization/scene creation)

    Parameters

    • from: axis2_placement_3d

      The transform to extract.

    • parentLocalId: number

      The parent's local ID.

    • extractOnly: true

      {true} Only extract, don't memoize and add to the scene

    Returns ParamsAxis2Placement3D

    The extracted placement.

  • Extract a boolean operand from a boolean result.

    Parameters

    • from:
          | boolean_result
          | half_space_solid
          | extruded_area_solid
          | faceted_brep

      The operand to extract.

    Returns void

  • Exctact a BSpline Curve

    Parameters

    • from: b_spline_curve

      The bspline curve, potentially with knots/rational.

    Returns CurveObject

    The constructed curve object.

  • Extract a bspline surface

    Parameters

    • from: b_spline_surface_with_knots

      The bspline surface to extract

    Returns BSplineSurface

  • Extracts a 2D Cartesian transformation operator from an AP214 Cartesian transformation operator definition. The transformation can be uniform or non-uniform.

    Parameters

    • from: cartesian_transformation_operator_2d

      The AP214 Cartesian transformation operator definition, which can be either uniform or non-uniform.

    Returns NativeTransform3x3

    The resulting transformation operator parameters.

  • Extract an AP214 3D cartesian transform operator as a transform matrix.

    Parameters

    • from: cartesian_transformation_operator_3d

      The AP214 cartesian transform to extract from.

    Returns any

    The internal matrix type extract.

  • Extract a curve object from a circle profile.

    Parameters

    • from: circle

      The circle definition to extract from.

    Returns undefined | CurveObject

    The extracted circle curve, or undefined if one cannot be extracted.

  • Parameters

    • from: connected_face_set[]

      array of AP214ConnectedFaceSet

    • parentLocalID: number

      parent element local ID

    Returns void

  • Parameters

    • from:
          | curve
          | trimmed_curve
          | line
          | b_spline_curve
          | polyline
          | circle
          | b_spline_curve_with_knots
          | rational_b_spline_curve
    • trimmingArguments: undefined | TrimmingArguments = ...

    Returns undefined | CurveObject

  • Extract a cylindrical surface.

    Parameters

    • from: cylindrical_surface

      The AP214 object to extract from.

    • nativeSurface: SurfaceObject

      The native surface representation.

    Returns void

  • Extracts the curve for an ellipse from an AP214 ellipse profile definition.

    Parameters

    • from: ellipse

      The AP214 ellipse profile definition to extract the curve from.

    Returns undefined | CurveObject

    A CurveObject representing the ellipse curve, or undefined if not extractable.

  • Parameters

    • from: face[]
    • parentLocalID: number
    • Optionalgeometry_: GeometryObject
    • temporary: boolean = false

    Returns GeometryObject

  • Extract a line

    Parameters

    • from: line

      The line to extract.

    • OptionaltrimmingArguments: TrimmingArguments

    Returns undefined | CurveObject

    The curve object for the line.

  • Extract a mapped item to add its transform to instance an item.

    Parameters

    • from: mapped_item

      The mapped item to extract.

    • OptionalowningElementLocalID: number

    Returns void

  • Extract a pointlist to a native vector.

    Parameters

    • from: cartesian_point[]

    Returns StdVector<Vector3>

    The native vector of 3D vectors.

  • Extract a list of a list of points to a native object.

    Parameters

    • from: cartesian_point[][]

      the list of lists of cartesian points

    • to: StdVector<StdVector<Vector3>>

      {out} the native vector of vector of points.

    Returns void

  • Extract a bspline surface

    Parameters

    • from: rational_b_spline_surface

      The bspline surface to extract

    Returns BSplineSurface

    The extracted surface

  • Extract a representation item, including its geometry if necessary, adding it to the current scene walk.

    Note - memoized result for instancing.

    Parameters

    • from: representation_item

      The representation to extract from.

    • OptionalowningElementLocalID: number

    Returns void

  • Parameters

    • from: styled_item

      The styled item to extract from

    • OptionalrepresentationItem: representation_item

    Returns undefined | number

    surafceStyleId or undefined if could not be determined

  • Extract a linear extrusion/sweep surface

    Parameters

    • from: surface_of_linear_extrusion
    • nativeSurface: SurfaceObject

    Returns void

  • Extract a surface of revolution/rotational sweep surface

    Parameters

    • from: surface_of_revolution
    • nativeSurface: SurfaceObject

    Returns void

  • Extract a canonical material from a surface style.

    Parameters

    • from: surface_style_usage

      The surface style to extract a material from.

    Returns void

  • Extract a bspline surface

    Parameters

    • from: number[]

      The bspline surface to extract

    • to: StdVector<number>

      The surface to extract to

    • start: number = 0
    • end: number = from.length

    Returns void

  • Extract a bspline surface

    Parameters

    • from: number[][]

      The bspline surface to extract

    • to: StdVector<StdVector<number>>

      The surface to extract to

    Returns void

  • Efficiently flatten the points into a Float32Array

    Parameters

    • points: cartesian_point[]

      Array of AP214CartesianPoint

    • dimensions: number

      dimensions of points

    Returns Float32Array

  • Create a native version of a vector curve to parse across the boundary.

    Parameters

    • OptionalinitialSize: number

      number - initial size of the vector (optional)

    Returns StdVector<CurveObject>

    • a native std::vector from the wasm module
  • Parameters

    • OptionalinitialSize: number

      number - initial size of the vector (optional)

    Returns StdVector<GeometryObject>

    • a native std::vector from the wasm module
  • Checks if a given point is not present in a collection of points.

    Parameters

    • pt: Vector3

      The point to check for presence.

    • points: NativeVectorGlmVec3

      A collection of points to compare against.

    Returns boolean

    A boolean indicating whether the point is not present in the collection.

  • Extract a 3D direction vector from an AP214 direction.

    Parameters

    • from: null | direction

      The AP214 direction to extract the vector from.

    Returns undefined | Vector3

    The vector, or undefined if it can't be extracted.