Skip to main content

@thatopen/fragments

Classes

ClassDescription
AlignmentRepresents an alignment in a civil engineering project. An alignment consists of vertical, horizontal, and absolute civil curves.
CivilCurveRepresents an alignment curve of a civil engineering model.
CurveMeshRepresents an alignment 3D curve mesh with additional civil engineering properties. Extends THREE.LineSegments to provide geometry and material for the curve.
FragmentClass representing a fragment of a 3D model. Fragments are just a simple wrapper around THREE.InstancedMesh. Each fragment can contain Items (identified by ItemID) which are mapped to one or many instances inside this THREE.InstancedMesh. Fragments also implement features like instance buffer resizing and hiding out of the box.
FragmentMeshA class representing a THREE.InstancedMesh with additional properties for fragment data.
FragmentsGroupA class representing a group of 3D fragments. This class extends THREE.Group and adds additional properties and methods for managing and interacting with the fragments it contains.
SerializerSerializer class for handling the serialization and deserialization of 3D model data. It uses the flatbuffers library for efficient data serialization and deserialization.
StreamSerializerA class for serializing and deserializing geometry data in a streamed format.

Interfaces

InterfaceDescription
FragmentIdMapA map that associates each fragmentID with a set of item IDs.
IfcMetadataRepresents metadata related to the IFC model.
IfcPropertiesRepresents a map of IFC properties.
IndexedGeometryRepresents a THREE.js geometry with an index attribute. We always work with indexed geometries, and this allows us to not check the existence of the index attribute each time we access it.
ItemRepresents an item in the 3D model.

Type Aliases

Type aliasDescription
AlignmentTypeRepresents the type of alignment, which can be vertical, horizontal, or absolute.
IfcSchemaRepresents the version of the IFC schema used in the model.
StreamedGeometriesRepresents a map of streamed geometries.