@thatopen/components 2.4.11 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18440 -25937
- package/dist/index.d.ts +4530 -6
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.mjs +3 -3
- package/dist/index.mjs +18442 -25939
- package/package.json +8 -10
- package/dist/core/Clipper/index.d.ts +0 -142
- package/dist/core/Clipper/src/clipper-config.d.ts +0 -33
- package/dist/core/Clipper/src/index.d.ts +0 -1
- package/dist/core/Clipper/src/simple-plane.d.ts +0 -99
- package/dist/core/Components/index.d.ts +0 -93
- package/dist/core/ConfigManager/index.d.ts +0 -21
- package/dist/core/ConfigManager/src/configurator.d.ts +0 -13
- package/dist/core/ConfigManager/src/index.d.ts +0 -1
- package/dist/core/Cullers/index.d.ts +0 -56
- package/dist/core/Cullers/src/culler-renderer-config.d.ts +0 -74
- package/dist/core/Cullers/src/culler-renderer.d.ts +0 -76
- package/dist/core/Cullers/src/index.d.ts +0 -3
- package/dist/core/Cullers/src/mesh-culler-renderer.d.ts +0 -59
- package/dist/core/Cullers/src/screen-culler-helper.d.ts +0 -1
- package/dist/core/Disposer/index.d.ts +0 -45
- package/dist/core/Grids/index.d.ts +0 -46
- package/dist/core/Grids/src/index.d.ts +0 -2
- package/dist/core/Grids/src/simple-grid-config.d.ts +0 -80
- package/dist/core/Grids/src/simple-grid.d.ts +0 -48
- package/dist/core/MiniMap/index.d.ts +0 -50
- package/dist/core/MiniMap/src/index.d.ts +0 -2
- package/dist/core/MiniMap/src/mini-map-config.d.ts +0 -112
- package/dist/core/MiniMap/src/mini-map.d.ts +0 -100
- package/dist/core/OrthoPerspectiveCamera/index.d.ts +0 -65
- package/dist/core/OrthoPerspectiveCamera/src/first-person-mode.d.ts +0 -16
- package/dist/core/OrthoPerspectiveCamera/src/index.d.ts +0 -5
- package/dist/core/OrthoPerspectiveCamera/src/orbit-mode.d.ts +0 -16
- package/dist/core/OrthoPerspectiveCamera/src/plan-mode.d.ts +0 -20
- package/dist/core/OrthoPerspectiveCamera/src/projections.d.ts +0 -45
- package/dist/core/OrthoPerspectiveCamera/src/types.d.ts +0 -26
- package/dist/core/Raycasters/index.d.ts +0 -43
- package/dist/core/Raycasters/src/index.d.ts +0 -2
- package/dist/core/Raycasters/src/mouse.d.ts +0 -24
- package/dist/core/Raycasters/src/simple-raycaster.d.ts +0 -54
- package/dist/core/ShadowedScene/index.d.ts +0 -57
- package/dist/core/ShadowedScene/src/distance-renderer.d.ts +0 -67
- package/dist/core/ShadowedScene/src/index.d.ts +0 -1
- package/dist/core/Types/index.d.ts +0 -1
- package/dist/core/Types/src/async-event.d.ts +0 -32
- package/dist/core/Types/src/base-camera.d.ts +0 -28
- package/dist/core/Types/src/base-renderer.d.ts +0 -65
- package/dist/core/Types/src/base-scene.d.ts +0 -25
- package/dist/core/Types/src/base-world-item.d.ts +0 -23
- package/dist/core/Types/src/base.d.ts +0 -19
- package/dist/core/Types/src/component-with-ui.d.ts +0 -18
- package/dist/core/Types/src/component.d.ts +0 -13
- package/dist/core/Types/src/config-types.d.ts +0 -47
- package/dist/core/Types/src/data-map.d.ts +0 -73
- package/dist/core/Types/src/data-set.d.ts +0 -58
- package/dist/core/Types/src/event-manager.d.ts +0 -30
- package/dist/core/Types/src/event.d.ts +0 -32
- package/dist/core/Types/src/index.d.ts +0 -15
- package/dist/core/Types/src/interfaces.d.ts +0 -117
- package/dist/core/Types/src/world.d.ts +0 -34
- package/dist/core/Viewpoints/index.d.ts +0 -38
- package/dist/core/Viewpoints/src/index.d.ts +0 -2
- package/dist/core/Viewpoints/src/types.d.ts +0 -36
- package/dist/core/Viewpoints/src/viewpoint.d.ts +0 -197
- package/dist/core/Viewpoints/src/viewpoints-config.d.ts +0 -23
- package/dist/core/Worlds/index.d.ts +0 -54
- package/dist/core/Worlds/src/index.d.ts +0 -5
- package/dist/core/Worlds/src/simple-camera.d.ts +0 -62
- package/dist/core/Worlds/src/simple-renderer.d.ts +0 -54
- package/dist/core/Worlds/src/simple-scene-config.d.ts +0 -59
- package/dist/core/Worlds/src/simple-scene.d.ts +0 -25
- package/dist/core/Worlds/src/simple-world.d.ts +0 -79
- package/dist/core/index.d.ts +0 -13
- package/dist/fragments/BoundingBoxer/index.d.ts +0 -208
- package/dist/fragments/Classifier/index.d.ts +0 -197
- package/dist/fragments/Exploder/index.d.ts +0 -50
- package/dist/fragments/FragmentsManager/index.d.ts +0 -152
- package/dist/fragments/Hider/index.d.ts +0 -38
- package/dist/fragments/IfcGeometryTiler/index.d.ts +0 -103
- package/dist/fragments/IfcGeometryTiler/src/base-types.d.ts +0 -29
- package/dist/fragments/IfcGeometryTiler/src/index.d.ts +0 -2
- package/dist/fragments/IfcGeometryTiler/src/streaming-settings.d.ts +0 -20
- package/dist/fragments/IfcLoader/index.d.ts +0 -116
- package/dist/fragments/IfcLoader/src/civil-reader.d.ts +0 -15
- package/dist/fragments/IfcLoader/src/ifc-fragment-settings.d.ts +0 -41
- package/dist/fragments/IfcLoader/src/ifc-metadata-reader.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/index.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/spatial-ids-finder.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/spatial-structure.d.ts +0 -8
- package/dist/fragments/IfcLoader/src/transform-helper.d.ts +0 -5
- package/dist/fragments/IfcLoader/src/units.d.ts +0 -10
- package/dist/fragments/IfcPropertiesTiler/index.d.ts +0 -66
- package/dist/fragments/IfcPropertiesTiler/src/index.d.ts +0 -1
- package/dist/fragments/IfcPropertiesTiler/src/streaming-settings.d.ts +0 -11
- package/dist/fragments/index.d.ts +0 -8
- package/dist/ifc/IfcFinder/index.d.ts +0 -50
- package/dist/ifc/IfcFinder/src/ifc-basic-query.d.ts +0 -35
- package/dist/ifc/IfcFinder/src/ifc-finder-query.d.ts +0 -96
- package/dist/ifc/IfcFinder/src/ifc-property-query.d.ts +0 -36
- package/dist/ifc/IfcFinder/src/ifc-query-group.d.ts +0 -69
- package/dist/ifc/IfcFinder/src/index.d.ts +0 -4
- package/dist/ifc/IfcFinder/src/types.d.ts +0 -84
- package/dist/ifc/IfcIsolator/index.d.ts +0 -24
- package/dist/ifc/IfcJsonExporter/index.d.ts +0 -26
- package/dist/ifc/IfcJsonExporter/src/ifc-geometry-types.d.ts +0 -4
- package/dist/ifc/IfcJsonExporter/src/index.d.ts +0 -1
- package/dist/ifc/IfcPropertiesManager/index.d.ts +0 -289
- package/dist/ifc/IfcPropertiesManager/src/index.d.ts +0 -3
- package/dist/ifc/IfcPropertiesManager/src/rel-attrs.d.ts +0 -7
- package/dist/ifc/IfcPropertiesManager/src/rel-names.d.ts +0 -3
- package/dist/ifc/IfcPropertiesManager/src/types.d.ts +0 -18
- package/dist/ifc/IfcRelationsIndexer/index.d.ts +0 -195
- package/dist/ifc/IfcRelationsIndexer/src/index.d.ts +0 -2
- package/dist/ifc/IfcRelationsIndexer/src/newVersion.d.ts +0 -51
- package/dist/ifc/IfcRelationsIndexer/src/relToAttributesMap.d.ts +0 -5
- package/dist/ifc/IfcRelationsIndexer/src/types.d.ts +0 -73
- package/dist/ifc/Utils/ifc-categories.d.ts +0 -7
- package/dist/ifc/Utils/ifc-category-case.d.ts +0 -3
- package/dist/ifc/Utils/ifc-category-map.d.ts +0 -6
- package/dist/ifc/Utils/ifc-elements-map.d.ts +0 -11
- package/dist/ifc/Utils/index.d.ts +0 -5
- package/dist/ifc/Utils/properties-utils.d.ts +0 -25
- package/dist/ifc/index.d.ts +0 -6
- package/dist/measurement/MeasurementUtils/index.d.ts +0 -105
- package/dist/measurement/index.d.ts +0 -1
- package/dist/namespace.d.ts +0 -6018
- package/dist/openbim/BCFTopics/index.d.ts +0 -114
- package/dist/openbim/BCFTopics/src/Comment.d.ts +0 -40
- package/dist/openbim/BCFTopics/src/Topic.d.ts +0 -127
- package/dist/openbim/BCFTopics/src/bcf-topics-config.d.ts +0 -121
- package/dist/openbim/BCFTopics/src/importers/extensions.d.ts +0 -2
- package/dist/openbim/BCFTopics/src/importers/index.d.ts +0 -1
- package/dist/openbim/BCFTopics/src/index.d.ts +0 -5
- package/dist/openbim/BCFTopics/src/types.d.ts +0 -19
- package/dist/openbim/IDSSpecifications/index.d.ts +0 -60
- package/dist/openbim/IDSSpecifications/src/Specification.d.ts +0 -40
- package/dist/openbim/IDSSpecifications/src/exporters/parameter.d.ts +0 -2
- package/dist/openbim/IDSSpecifications/src/facets/Attribute.d.ts +0 -13
- package/dist/openbim/IDSSpecifications/src/facets/Classification.d.ts +0 -21
- package/dist/openbim/IDSSpecifications/src/facets/Entity.d.ts +0 -15
- package/dist/openbim/IDSSpecifications/src/facets/Facet.d.ts +0 -26
- package/dist/openbim/IDSSpecifications/src/facets/Material.d.ts +0 -10
- package/dist/openbim/IDSSpecifications/src/facets/PartOf.d.ts +0 -26
- package/dist/openbim/IDSSpecifications/src/facets/Property.d.ts +0 -25
- package/dist/openbim/IDSSpecifications/src/facets/index.d.ts +0 -5
- package/dist/openbim/IDSSpecifications/src/importers/attribute.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/classification.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/entity.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/index.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/importers/parameter.d.ts +0 -2
- package/dist/openbim/IDSSpecifications/src/importers/property.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/index.d.ts +0 -3
- package/dist/openbim/IDSSpecifications/src/types.d.ts +0 -70
- package/dist/openbim/index.d.ts +0 -2
- package/dist/utils/bbox.d.ts +0 -7
- package/dist/utils/geometry.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/materials.d.ts +0 -4
- package/dist/utils/section-generator.d.ts +0 -31
- package/dist/utils/uuid.d.ts +0 -6
- package/dist/utils/vertex-picker.d.ts +0 -116
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
declare const actual: {
|
|
2
|
-
186: {
|
|
3
|
-
7: number[];
|
|
4
|
-
};
|
|
5
|
-
250: {
|
|
6
|
-
8: number[];
|
|
7
|
-
};
|
|
8
|
-
253: {
|
|
9
|
-
8: number[];
|
|
10
|
-
};
|
|
11
|
-
257: {
|
|
12
|
-
8: number[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const newVersion: {
|
|
16
|
-
186: {
|
|
17
|
-
7: ({
|
|
18
|
-
259: number[];
|
|
19
|
-
263?: undefined;
|
|
20
|
-
266?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
263: number[];
|
|
23
|
-
259?: undefined;
|
|
24
|
-
266?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
266: number[];
|
|
27
|
-
259?: undefined;
|
|
28
|
-
263?: undefined;
|
|
29
|
-
})[];
|
|
30
|
-
};
|
|
31
|
-
190: {
|
|
32
|
-
7: {
|
|
33
|
-
259: number[];
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
36
|
-
250: {
|
|
37
|
-
8: {
|
|
38
|
-
259: number[];
|
|
39
|
-
}[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
interface V2Schema {
|
|
43
|
-
[expressID: number]: {
|
|
44
|
-
[invAttrIndex: number]: {
|
|
45
|
-
[IfcRelationship: number]: number[];
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
type RelationsMap = Map<number, Map<number, {
|
|
50
|
-
[ifcRel: number]: number[];
|
|
51
|
-
}>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InverseAttribute } from "./types";
|
|
2
|
-
export declare const relToAttributesMap: Map<160246688 | 2655215786 | 919958153 | 1307041759 | 4186316022 | 781010003 | 307848117 | 3242617779 | 279856033 | 1204542856 | 2857406711 | 2565941209 | 2495723537 | 3268803585 | 982818633, {
|
|
3
|
-
forRelating: InverseAttribute;
|
|
4
|
-
forRelated: InverseAttribute;
|
|
5
|
-
}>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as WEBIFC from "web-ifc";
|
|
2
|
-
export type RelationsMap = Map<number, Map<number, number[]>>;
|
|
3
|
-
export interface ModelsRelationMap {
|
|
4
|
-
[modelID: string]: RelationsMap;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Type alias for an array of inverse attribute names.
|
|
8
|
-
*/
|
|
9
|
-
export type InverseAttributes = [
|
|
10
|
-
"IsDecomposedBy",
|
|
11
|
-
"Decomposes",
|
|
12
|
-
"AssociatedTo",
|
|
13
|
-
"HasAssociations",
|
|
14
|
-
"ClassificationForObjects",
|
|
15
|
-
"IsGroupedBy",
|
|
16
|
-
"HasAssignments",
|
|
17
|
-
"IsDefinedBy",
|
|
18
|
-
"DefinesOcurrence",
|
|
19
|
-
"IsTypedBy",
|
|
20
|
-
"Types",
|
|
21
|
-
"Defines",
|
|
22
|
-
"ContainedInStructure",
|
|
23
|
-
"ContainsElements",
|
|
24
|
-
"HasControlElements",
|
|
25
|
-
"AssignedToFlowElement",
|
|
26
|
-
"ConnectedTo",
|
|
27
|
-
"ConnectedFrom",
|
|
28
|
-
"ReferencedBy",
|
|
29
|
-
"Declares",
|
|
30
|
-
"HasContext",
|
|
31
|
-
"Controls",
|
|
32
|
-
"IsNestedBy",
|
|
33
|
-
"Nests",
|
|
34
|
-
"DocumentRefForObjects"
|
|
35
|
-
];
|
|
36
|
-
export type InverseAttribute = InverseAttributes[number];
|
|
37
|
-
/**
|
|
38
|
-
* Type alias for an array of IfcRelation types from WebIfc.
|
|
39
|
-
*/
|
|
40
|
-
export type IfcRelations = [
|
|
41
|
-
typeof WEBIFC.IFCRELAGGREGATES,
|
|
42
|
-
typeof WEBIFC.IFCRELASSOCIATESMATERIAL,
|
|
43
|
-
typeof WEBIFC.IFCRELASSOCIATESCLASSIFICATION,
|
|
44
|
-
typeof WEBIFC.IFCRELASSIGNSTOGROUP,
|
|
45
|
-
typeof WEBIFC.IFCRELDEFINESBYPROPERTIES,
|
|
46
|
-
typeof WEBIFC.IFCRELDEFINESBYTYPE,
|
|
47
|
-
typeof WEBIFC.IFCRELDEFINESBYTEMPLATE,
|
|
48
|
-
typeof WEBIFC.IFCRELCONTAINEDINSPATIALSTRUCTURE,
|
|
49
|
-
typeof WEBIFC.IFCRELFLOWCONTROLELEMENTS,
|
|
50
|
-
typeof WEBIFC.IFCRELCONNECTSELEMENTS,
|
|
51
|
-
typeof WEBIFC.IFCRELASSIGNSTOPRODUCT,
|
|
52
|
-
typeof WEBIFC.IFCRELDECLARES,
|
|
53
|
-
typeof WEBIFC.IFCRELASSIGNSTOCONTROL,
|
|
54
|
-
typeof WEBIFC.IFCRELNESTS,
|
|
55
|
-
typeof WEBIFC.IFCRELASSOCIATESDOCUMENT
|
|
56
|
-
];
|
|
57
|
-
export type IfcRelation = IfcRelations[number];
|
|
58
|
-
export interface RelationsProcessingConfig {
|
|
59
|
-
relationsToProcess: IfcRelation[];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Interface definition of an Entities Related Event from the IfcRelationsIndexer. This event gets triggered when two or more entities has been related with each other.
|
|
63
|
-
*/
|
|
64
|
-
export interface EntitiesRelatedEvent {
|
|
65
|
-
/** The type of the IFC relation. */
|
|
66
|
-
relType: IfcRelation;
|
|
67
|
-
/** The inverse attribute of the relation. */
|
|
68
|
-
invAttribute: InverseAttribute;
|
|
69
|
-
/** The IDs of the entities that are relating. */
|
|
70
|
-
relatingIDs: number[];
|
|
71
|
-
/** The IDs of the entities that are being related. */
|
|
72
|
-
relatedIDs: number[];
|
|
73
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A map that associates each unique integer identifier (IFC Entity ID) with its corresponding category name. This map is used to map IFC entities to their respective categories for easier identification and processing.
|
|
3
|
-
*/
|
|
4
|
-
export declare const IfcCategoryMap: {
|
|
5
|
-
[key: number]: string;
|
|
6
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A map of IFC element types to their corresponding names. The keys are the IFC entity type numbers, and the values are the names of the IFC entities.
|
|
3
|
-
*
|
|
4
|
-
* @remarks
|
|
5
|
-
* This map is used to provide a mapping between IFC entity type numbers and their names.
|
|
6
|
-
* It is useful for identifying and processing different types of IFC elements in a project.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export declare const IfcElements: {
|
|
10
|
-
[key: number]: string;
|
|
11
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
2
|
-
export declare class IfcPropertiesUtils {
|
|
3
|
-
static getUnits(group: FRAGS.FragmentsGroup): Promise<number>;
|
|
4
|
-
static findItemByGuid(model: FRAGS.FragmentsGroup, guid: string): Promise<{
|
|
5
|
-
[attribute: string]: any;
|
|
6
|
-
} | null>;
|
|
7
|
-
static getRelationMap(model: FRAGS.FragmentsGroup, relationType: number, onElementsFound?: (relatingID: number, relatedIDs: number[]) => Promise<void>): Promise<{
|
|
8
|
-
[relatingID: number]: number[];
|
|
9
|
-
}>;
|
|
10
|
-
static getQsetQuantities(model: FRAGS.FragmentsGroup, expressID: number, onQuantityFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
11
|
-
static getPsetProps(model: FRAGS.FragmentsGroup, expressID: number, onPropFound?: (expressID: number) => void): Promise<number[] | null>;
|
|
12
|
-
static getPsetRel(model: FRAGS.FragmentsGroup, psetID: number): Promise<number | null>;
|
|
13
|
-
static getQsetRel(model: FRAGS.FragmentsGroup, qsetID: number): Promise<number | null>;
|
|
14
|
-
static getEntityName(model: FRAGS.FragmentsGroup, entityID: number): Promise<{
|
|
15
|
-
key: string | null;
|
|
16
|
-
name: string | null;
|
|
17
|
-
}>;
|
|
18
|
-
static getQuantityValue(model: FRAGS.FragmentsGroup, quantityID: number): Promise<{
|
|
19
|
-
key: string | null;
|
|
20
|
-
value: number | null;
|
|
21
|
-
}>;
|
|
22
|
-
static isRel(expressID: number): boolean;
|
|
23
|
-
static attributeExists(model: FRAGS.FragmentsGroup, expressID: number, attribute: string): Promise<boolean>;
|
|
24
|
-
static groupEntitiesByType(model: FRAGS.FragmentsGroup, expressIDs: Set<number> | number[]): Promise<Map<number, Set<number>>>;
|
|
25
|
-
}
|
package/dist/ifc/index.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import * as FRAGS from "@thatopen/fragments";
|
|
3
|
-
import { Component, Components } from "../../core";
|
|
4
|
-
/**
|
|
5
|
-
* Represents an edge measurement result.
|
|
6
|
-
*/
|
|
7
|
-
export interface MeasureEdge {
|
|
8
|
-
/**
|
|
9
|
-
* The distance between the two points of the edge.
|
|
10
|
-
*/
|
|
11
|
-
distance: number;
|
|
12
|
-
/**
|
|
13
|
-
* The two points that define the edge.
|
|
14
|
-
*/
|
|
15
|
-
points: THREE.Vector3[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Utility component for performing measurements on 3D meshes by providing methods for measuring distances between edges and faces. 📕 [Tutorial](https://docs.thatopen.com/Tutorials/Components/Core/MeasurementUtils). 📘 [API](https://docs.thatopen.com/api/@thatopen/components/classes/MeasurementUtils).
|
|
19
|
-
*/
|
|
20
|
-
export declare class MeasurementUtils extends Component {
|
|
21
|
-
/**
|
|
22
|
-
* A unique identifier for the component.
|
|
23
|
-
* This UUID is used to register the component within the Components system.
|
|
24
|
-
*/
|
|
25
|
-
static uuid: string;
|
|
26
|
-
/** {@link Component.enabled} */
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
constructor(components: Components);
|
|
29
|
-
/**
|
|
30
|
-
* Utility method to calculate the distance from a point to a line segment.
|
|
31
|
-
*
|
|
32
|
-
* @param point - The point from which to calculate the distance.
|
|
33
|
-
* @param lineStart - The start point of the line segment.
|
|
34
|
-
* @param lineEnd - The end point of the line segment.
|
|
35
|
-
* @param clamp - If true, the distance will be clamped to the line segment's length.
|
|
36
|
-
* @returns The distance from the point to the line segment.
|
|
37
|
-
*/
|
|
38
|
-
static distanceFromPointToLine(point: THREE.Vector3, lineStart: THREE.Vector3, lineEnd: THREE.Vector3, clamp?: boolean): number;
|
|
39
|
-
/**
|
|
40
|
-
* Method to get the face of a mesh that contains a given triangle index.
|
|
41
|
-
* It also returns the edges of the found face and their indices.
|
|
42
|
-
*
|
|
43
|
-
* @param mesh - The mesh to get the face from. It must be indexed.
|
|
44
|
-
* @param triangleIndex - The index of the triangle within the mesh.
|
|
45
|
-
* @param instance - The instance of the mesh (optional).
|
|
46
|
-
* @returns An object containing the edges of the found face and their indices, or null if no face was found.
|
|
47
|
-
*/
|
|
48
|
-
getFace(mesh: THREE.InstancedMesh | THREE.Mesh, triangleIndex: number, instance?: number): {
|
|
49
|
-
edges: MeasureEdge[];
|
|
50
|
-
indices: Set<number>;
|
|
51
|
-
} | null;
|
|
52
|
-
/**
|
|
53
|
-
* Method to get the vertices and normal of a mesh face at a given index.
|
|
54
|
-
* It also applies instance transformation if provided.
|
|
55
|
-
*
|
|
56
|
-
* @param mesh - The mesh to get the face from. It must be indexed.
|
|
57
|
-
* @param faceIndex - The index of the face within the mesh.
|
|
58
|
-
* @param instance - The instance of the mesh (optional).
|
|
59
|
-
* @returns An object containing the vertices and normal of the face.
|
|
60
|
-
* @throws Will throw an error if the geometry is not indexed.
|
|
61
|
-
*/
|
|
62
|
-
getVerticesAndNormal(mesh: THREE.Mesh | THREE.InstancedMesh, faceIndex: number, instance: number | undefined): {
|
|
63
|
-
p1: THREE.Vector3;
|
|
64
|
-
p2: THREE.Vector3;
|
|
65
|
-
p3: THREE.Vector3;
|
|
66
|
-
faceNormal: THREE.Vector3;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Method to round the vector's components to a specified number of decimal places.
|
|
70
|
-
* This is used to ensure numerical precision in edge detection.
|
|
71
|
-
*
|
|
72
|
-
* @param vector - The vector to round.
|
|
73
|
-
* @returns The vector with rounded components.
|
|
74
|
-
*/
|
|
75
|
-
round(vector: THREE.Vector3): void;
|
|
76
|
-
/**
|
|
77
|
-
* Calculates the volume of a set of fragments.
|
|
78
|
-
*
|
|
79
|
-
* @param frags - A map of fragment IDs to their corresponding item IDs.
|
|
80
|
-
* @returns The total volume of the fragments and the bounding sphere.
|
|
81
|
-
*
|
|
82
|
-
* @remarks
|
|
83
|
-
* This method creates a set of instanced meshes from the given fragments and item IDs.
|
|
84
|
-
* It then calculates the volume of each mesh and returns the total volume and its bounding sphere.
|
|
85
|
-
*
|
|
86
|
-
* @throws Will throw an error if the geometry of the meshes is not indexed.
|
|
87
|
-
* @throws Will throw an error if the fragment manager is not available.
|
|
88
|
-
*/
|
|
89
|
-
getVolumeFromFragments(frags: FRAGS.FragmentIdMap): number;
|
|
90
|
-
/**
|
|
91
|
-
* Calculates the total volume of a set of meshes.
|
|
92
|
-
*
|
|
93
|
-
* @param meshes - An array of meshes or instanced meshes to calculate the volume from.
|
|
94
|
-
* @returns The total volume of the meshes and the bounding sphere.
|
|
95
|
-
*
|
|
96
|
-
* @remarks
|
|
97
|
-
* This method calculates the volume of each mesh in the provided array and returns the total volume
|
|
98
|
-
* and its bounding sphere.
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
getVolumeFromMeshes(meshes: THREE.InstancedMesh[] | THREE.Mesh[]): number;
|
|
102
|
-
private getFaceData;
|
|
103
|
-
private getVolumeOfMesh;
|
|
104
|
-
private getSignedVolumeOfTriangle;
|
|
105
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./MeasurementUtils";
|