opengeometry 2.0.18 → 3.0.0
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/LICENSE.md +373 -0
- package/README.md +187 -128
- package/body-registry-MbAD6Hyq.js +3159 -0
- package/body-registry-MbAD6Hyq.js.map +1 -0
- package/index.d.ts +18 -115
- package/index.js +1170 -11758
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +144 -1304
- package/opengeometry/pkg/opengeometry.js +1316 -5806
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +62 -458
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +62 -458
- package/package.json +54 -34
- package/src/bodies/body-factory.d.ts +3 -0
- package/src/bodies/body-options.d.ts +19 -0
- package/src/bodies/body-placement.d.ts +10 -0
- package/src/bodies/body-registry.d.ts +3 -0
- package/src/bodies/body.d.ts +71 -0
- package/src/bodies/display-clone.d.ts +10 -0
- package/src/bodies/node-methods.d.ts +30 -0
- package/src/bodies/sheet.d.ts +14 -0
- package/src/bodies/solid.d.ts +23 -0
- package/src/bodies/system-assembly.d.ts +26 -0
- package/src/bodies/wire.d.ts +14 -0
- package/src/constants/index.d.ts +4 -0
- package/src/constants/operations.d.ts +58 -0
- package/src/constants/primitives.d.ts +69 -0
- package/src/constants/regions.d.ts +1 -0
- package/src/constants/transforms.d.ts +4 -0
- package/src/dto/boolean-report.d.ts +24 -0
- package/src/dto/bounds.d.ts +1 -0
- package/src/dto/brep.d.ts +99 -0
- package/src/dto/change-set.d.ts +13 -0
- package/src/dto/creation.d.ts +3 -0
- package/src/dto/display-buffers.d.ts +14 -0
- package/src/dto/events.d.ts +2 -0
- package/src/{export/analytic-ifc.d.ts → dto/ifc-body.d.ts} +16 -18
- package/src/dto/mark-stats.d.ts +4 -0
- package/src/dto/measure.d.ts +16 -0
- package/src/dto/mirror.d.ts +4 -0
- package/src/dto/node-info.d.ts +11 -0
- package/src/dto/pick-result.d.ts +6 -0
- package/src/dto/placement.d.ts +6 -0
- package/src/dto/primitives.d.ts +77 -0
- package/src/dto/regions.d.ts +42 -0
- package/src/dto/step-export.d.ts +42 -0
- package/src/errors.d.ts +20 -0
- package/src/export/export-step.d.ts +10 -0
- package/src/export/ifc-body.d.ts +4 -0
- package/src/kernel/kernel-errors.d.ts +5 -0
- package/src/kernel/kernel-loader.d.ts +5 -0
- package/src/kernel/kernel-session.d.ts +2 -0
- package/src/limits.d.ts +12 -0
- package/src/marks/limbo.d.ts +6 -0
- package/src/marks/og-mark.d.ts +10 -0
- package/src/marks/transaction.d.ts +3 -0
- package/src/opengeometry.d.ts +69 -0
- package/src/operations/offsets.d.ts +5 -0
- package/src/operations/regions.d.ts +4 -0
- package/src/picking/pick-targets.d.ts +6 -0
- package/src/picking/resolve-hit.d.ts +3 -0
- package/src/rendering/deferred.d.ts +7 -0
- package/src/rendering/geometry/geometry-scheduler.d.ts +12 -0
- package/src/rendering/geometry/host-group.d.ts +10 -0
- package/src/rendering/geometry/render-pass.d.ts +8 -0
- package/src/rendering/geometry/settle.d.ts +10 -0
- package/src/rendering/inline-backend.d.ts +14 -0
- package/src/rendering/lod/body-size.d.ts +11 -0
- package/src/rendering/lod/camera-observer.d.ts +2 -0
- package/src/rendering/lod/deflection.d.ts +2 -0
- package/src/rendering/lod/display-bounds.d.ts +4 -0
- package/src/rendering/lod/displayed.d.ts +7 -0
- package/src/rendering/lod/host-drawn.d.ts +5 -0
- package/src/rendering/lod/host-groups.d.ts +28 -0
- package/src/rendering/lod/lod-controller.d.ts +75 -0
- package/src/rendering/lod/screen-metrics.d.ts +2 -0
- package/src/rendering/materials/material-pool.d.ts +12 -0
- package/src/rendering/materials/ref-counted-pool.d.ts +12 -0
- package/src/rendering/provider.d.ts +19 -0
- package/src/rendering/records/geometry-record.d.ts +21 -0
- package/src/rendering/records/record-pool.d.ts +29 -0
- package/src/rendering/records/validate-display-buffers.d.ts +2 -0
- package/src/rendering/tessellation-worker.d.ts +1 -0
- package/src/rendering/worker/job-queue.d.ts +8 -0
- package/src/rendering/worker/message-guards.d.ts +9 -0
- package/src/rendering/worker/snapshot-cache.d.ts +10 -0
- package/src/rendering/worker-backend.d.ts +44 -0
- package/src/rendering/worker-protocol.d.ts +52 -0
- package/src/runtime/create-runtime.d.ts +7 -0
- package/src/runtime/event-bus.d.ts +3 -0
- package/src/runtime/reset.d.ts +1 -0
- package/src/runtime/runtime-state.d.ts +68 -0
- package/src/testing/internals.d.ts +18 -0
- package/src/world-graph/codec.d.ts +45 -0
- package/src/world-graph/world-graph-client.d.ts +13 -0
- package/tessellation-worker.js +634 -0
- package/tessellation-worker.js.map +1 -0
- package/testing.d.ts +1 -0
- package/testing.js +87 -0
- package/testing.js.map +1 -0
- package/analytic-worker.js +0 -90
- package/src/base-types.d.ts +0 -13
- package/src/editor/freeform.d.ts +0 -91
- package/src/editor/index.d.ts +0 -6
- package/src/editor/parametric.d.ts +0 -15
- package/src/editor/types.d.ts +0 -223
- package/src/examples/booleans.d.ts +0 -24
- package/src/examples/editor-modes.d.ts +0 -20
- package/src/examples/index.d.ts +0 -11
- package/src/examples/offset-ring-variable.d.ts +0 -13
- package/src/examples/offset.d.ts +0 -18
- package/src/examples/primitives.d.ts +0 -16
- package/src/examples/ribbon-from-offsets.d.ts +0 -33
- package/src/examples/shapes.d.ts +0 -20
- package/src/examples/sweep.d.ts +0 -9
- package/src/freeform/geometry.d.ts +0 -82
- package/src/freeform/index.d.ts +0 -5
- package/src/freeform/types.d.ts +0 -36
- package/src/markup/spotMarker.d.ts +0 -4
- package/src/operations/analytic-errors.d.ts +0 -8
- package/src/operations/boolean-regions.d.ts +0 -20
- package/src/operations/boolean.d.ts +0 -16
- package/src/operations/editor/freeform.d.ts +0 -1
- package/src/operations/editor/index.d.ts +0 -1
- package/src/operations/editor/parametric.d.ts +0 -1
- package/src/operations/editor/types.d.ts +0 -1
- package/src/operations/extrude.d.ts +0 -9
- package/src/operations/index.d.ts +0 -9
- package/src/operations/loft.d.ts +0 -13
- package/src/operations/offset-regions.d.ts +0 -76
- package/src/primitives/analytic-curve.d.ts +0 -42
- package/src/primitives/arc.d.ts +0 -36
- package/src/primitives/curve.d.ts +0 -64
- package/src/primitives/elliptical_arc.d.ts +0 -38
- package/src/primitives/index.d.ts +0 -9
- package/src/primitives/line.d.ts +0 -77
- package/src/primitives/polyline.d.ts +0 -78
- package/src/primitives/rectangle.d.ts +0 -72
- package/src/rendering/analytic-lod.d.ts +0 -32
- package/src/rendering/analytic-tessellation.d.ts +0 -32
- package/src/shapes/analytic-pattern.d.ts +0 -36
- package/src/shapes/analytic-solid.d.ts +0 -304
- package/src/shapes/cuboid.d.ts +0 -62
- package/src/shapes/cylinder.d.ts +0 -36
- package/src/shapes/index.d.ts +0 -11
- package/src/shapes/opening.d.ts +0 -31
- package/src/shapes/outline-utils.d.ts +0 -35
- package/src/shapes/polygon.d.ts +0 -102
- package/src/shapes/solid.d.ts +0 -108
- package/src/shapes/sphere.d.ts +0 -27
- package/src/shapes/sweep.d.ts +0 -76
- package/src/shapes/wedge.d.ts +0 -75
- package/src/utils/event.d.ts +0 -29
- package/src/utils/randomizer.d.ts +0 -1
- package/src/world/world-graph.d.ts +0 -112
package/src/shapes/sphere.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "../../opengeometry/pkg/opengeometry.js";
|
|
2
|
-
import * as THREE from "three";
|
|
3
|
-
import { AnalyticSolid, type AnalyticAccuracy } from "./analytic-solid.js";
|
|
4
|
-
export interface ISphereOptions {
|
|
5
|
-
ogid?: string;
|
|
6
|
-
center?: Vector3;
|
|
7
|
-
radius?: number;
|
|
8
|
-
deflection?: number;
|
|
9
|
-
accuracy?: AnalyticAccuracy;
|
|
10
|
-
color?: THREE.ColorRepresentation;
|
|
11
|
-
}
|
|
12
|
-
interface NormalizedSphereOptions {
|
|
13
|
-
ogid?: string;
|
|
14
|
-
center: Vector3;
|
|
15
|
-
radius: number;
|
|
16
|
-
deflection: number;
|
|
17
|
-
accuracy?: AnalyticAccuracy;
|
|
18
|
-
color: THREE.ColorRepresentation;
|
|
19
|
-
}
|
|
20
|
-
/** Authoritative spherical BRep with explicit poles and transient deflection tessellation. */
|
|
21
|
-
export declare class Sphere extends AnalyticSolid {
|
|
22
|
-
readonly options: Readonly<NormalizedSphereOptions>;
|
|
23
|
-
constructor(options?: ISphereOptions);
|
|
24
|
-
get radius(): number;
|
|
25
|
-
getAnchor(): THREE.Vector3;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
package/src/shapes/sweep.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as OGKernel from "../../opengeometry/pkg/opengeometry.js";
|
|
2
|
-
import { Vector3 } from "../../opengeometry/pkg/opengeometry.js";
|
|
3
|
-
import * as THREE from "three";
|
|
4
|
-
/**
|
|
5
|
-
* Construction options for a swept solid.
|
|
6
|
-
*/
|
|
7
|
-
export interface ISweepOptions {
|
|
8
|
-
ogid?: string;
|
|
9
|
-
path: Vector3[];
|
|
10
|
-
profile: Vector3[];
|
|
11
|
-
color: number;
|
|
12
|
-
capStart?: boolean;
|
|
13
|
-
capEnd?: boolean;
|
|
14
|
-
fatOutlines?: boolean;
|
|
15
|
-
outlineWidth?: number;
|
|
16
|
-
translation?: Vector3;
|
|
17
|
-
rotation?: Vector3;
|
|
18
|
-
scale?: Vector3;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Placement updates accepted by `Sweep`.
|
|
22
|
-
*/
|
|
23
|
-
export interface SweepPlacementOptions {
|
|
24
|
-
translation?: Vector3;
|
|
25
|
-
rotation?: Vector3;
|
|
26
|
-
scale?: Vector3;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Partial config payload accepted by `Sweep.setConfig(...)`.
|
|
30
|
-
*/
|
|
31
|
-
export type SweepConfigUpdate = Partial<Omit<ISweepOptions, "translation" | "rotation" | "scale">>;
|
|
32
|
-
/**
|
|
33
|
-
* Alias for `Sweep` placement updates.
|
|
34
|
-
*/
|
|
35
|
-
export type SweepPlacementUpdate = SweepPlacementOptions;
|
|
36
|
-
/**
|
|
37
|
-
* Sweep wrapper backed by the kernel sweep primitive.
|
|
38
|
-
*/
|
|
39
|
-
export declare class Sweep extends THREE.Mesh {
|
|
40
|
-
#private;
|
|
41
|
-
ogid: string;
|
|
42
|
-
options: ISweepOptions;
|
|
43
|
-
private sweep;
|
|
44
|
-
private _outlineEnabled;
|
|
45
|
-
private _fatOutlines;
|
|
46
|
-
private _outlineWidth;
|
|
47
|
-
set color(color: number);
|
|
48
|
-
constructor(options?: ISweepOptions);
|
|
49
|
-
validateOptions(): void;
|
|
50
|
-
setConfig(options: SweepConfigUpdate): void;
|
|
51
|
-
getConfig(): ISweepOptions;
|
|
52
|
-
getAnchor(): OGKernel.Vector3;
|
|
53
|
-
setAnchor(anchor: Vector3): void;
|
|
54
|
-
resetAnchor(): void;
|
|
55
|
-
setPlacement(placement: SweepPlacementUpdate): void;
|
|
56
|
-
setTransform(translation: Vector3, rotation: Vector3, scale: Vector3): void;
|
|
57
|
-
setTranslation(translation: Vector3): void;
|
|
58
|
-
setRotation(rotation: Vector3): void;
|
|
59
|
-
setScale(scale: Vector3): void;
|
|
60
|
-
getPlacement(): import("../editor.js").ParametricPlacement;
|
|
61
|
-
getEditCapabilities(): import("../editor.js").ParametricEditCapabilities;
|
|
62
|
-
canConvertToFreeform(): boolean;
|
|
63
|
-
toFreeform(id?: string): import("../freeform.js").FreeformGeometry;
|
|
64
|
-
cleanGeometry(): void;
|
|
65
|
-
generateGeometry(): void;
|
|
66
|
-
getBrep(): any;
|
|
67
|
-
set outline(enable: boolean);
|
|
68
|
-
get outline(): boolean;
|
|
69
|
-
set fatOutlines(value: boolean);
|
|
70
|
-
get fatOutlines(): boolean;
|
|
71
|
-
set outlineWidth(value: number);
|
|
72
|
-
get outlineWidth(): number;
|
|
73
|
-
private clearOutlineMesh;
|
|
74
|
-
discardGeometry(): void;
|
|
75
|
-
private writePositionsToGeometry;
|
|
76
|
-
}
|
package/src/shapes/wedge.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "../../opengeometry/pkg/opengeometry.js";
|
|
2
|
-
import * as THREE from "three";
|
|
3
|
-
import { ShapeOutlineMesh } from "./outline-utils.js";
|
|
4
|
-
/**
|
|
5
|
-
* Construction options for a wedge/prism shape.
|
|
6
|
-
*/
|
|
7
|
-
export interface IWedgeOptions {
|
|
8
|
-
ogid?: string;
|
|
9
|
-
center: Vector3;
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
depth: number;
|
|
13
|
-
color: number;
|
|
14
|
-
fatOutlines?: boolean;
|
|
15
|
-
outlineWidth?: number;
|
|
16
|
-
translation?: Vector3;
|
|
17
|
-
rotation?: Vector3;
|
|
18
|
-
scale?: Vector3;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Placement updates accepted by `Wedge`.
|
|
22
|
-
*/
|
|
23
|
-
export interface WedgePlacementOptions {
|
|
24
|
-
translation?: Vector3;
|
|
25
|
-
rotation?: Vector3;
|
|
26
|
-
scale?: Vector3;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Partial config payload accepted by `Wedge.setConfig(...)`.
|
|
30
|
-
*/
|
|
31
|
-
export type WedgeConfigUpdate = Partial<Omit<IWedgeOptions, "translation" | "rotation" | "scale">>;
|
|
32
|
-
/**
|
|
33
|
-
* Alias for `Wedge` placement updates.
|
|
34
|
-
*/
|
|
35
|
-
export type WedgePlacementUpdate = WedgePlacementOptions;
|
|
36
|
-
/**
|
|
37
|
-
* Wedge wrapper backed by the kernel wedge primitive.
|
|
38
|
-
*/
|
|
39
|
-
export declare class Wedge extends THREE.Mesh {
|
|
40
|
-
#private;
|
|
41
|
-
ogid: string;
|
|
42
|
-
options: IWedgeOptions;
|
|
43
|
-
private wedge;
|
|
44
|
-
private _outlineEnabled;
|
|
45
|
-
private _fatOutlines;
|
|
46
|
-
private _outlineWidth;
|
|
47
|
-
set color(color: number);
|
|
48
|
-
constructor(options?: IWedgeOptions);
|
|
49
|
-
validateOptions(): void;
|
|
50
|
-
setConfig(options: WedgeConfigUpdate): void;
|
|
51
|
-
getConfig(): IWedgeOptions;
|
|
52
|
-
getAnchor(): Vector3;
|
|
53
|
-
setPlacement(placement: WedgePlacementUpdate): void;
|
|
54
|
-
setTransform(translation: Vector3, rotation: Vector3, scale: Vector3): void;
|
|
55
|
-
setTranslation(translation: Vector3): void;
|
|
56
|
-
setRotation(rotation: Vector3): void;
|
|
57
|
-
setScale(scale: Vector3): void;
|
|
58
|
-
getPlacement(): import("../editor.js").ParametricPlacement;
|
|
59
|
-
getEditCapabilities(): import("../editor.js").ParametricEditCapabilities;
|
|
60
|
-
canConvertToFreeform(): boolean;
|
|
61
|
-
toFreeform(id?: string): import("../freeform.js").FreeformGeometry;
|
|
62
|
-
cleanGeometry(): void;
|
|
63
|
-
generateGeometry(): void;
|
|
64
|
-
getBrepData(): any;
|
|
65
|
-
set outline(enable: boolean);
|
|
66
|
-
get outline(): boolean;
|
|
67
|
-
set fatOutlines(value: boolean);
|
|
68
|
-
get fatOutlines(): boolean;
|
|
69
|
-
set outlineWidth(value: number);
|
|
70
|
-
get outlineWidth(): number;
|
|
71
|
-
get outlineMesh(): ShapeOutlineMesh | null;
|
|
72
|
-
private clearOutlineMesh;
|
|
73
|
-
discardGeometry(): void;
|
|
74
|
-
private writePositionsToGeometry;
|
|
75
|
-
}
|
package/src/utils/event.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Original source: Simple event handler by [Jason Kleban](https://gist.github.com/JasonKleban/50cee44960c225ac1993c922563aa540). Keep in mind that if you want to remove it later, you might want to declare the callback as an object. If you want to maintain the reference to `this`, you will need to declare the callback as an arrow function.
|
|
3
|
-
* Adapted to TypeScript by ThatOpen Company
|
|
4
|
-
*/
|
|
5
|
-
export declare class Event<T> {
|
|
6
|
-
/**
|
|
7
|
-
* Add a callback to this event instance.
|
|
8
|
-
* @param handler - the callback to be added to this event.
|
|
9
|
-
*/
|
|
10
|
-
add(handler: T extends void ? {
|
|
11
|
-
(): void;
|
|
12
|
-
} : {
|
|
13
|
-
(data: T): void;
|
|
14
|
-
}): void;
|
|
15
|
-
/**
|
|
16
|
-
* Removes a callback from this event instance.
|
|
17
|
-
* @param handler - the callback to be removed from this event.
|
|
18
|
-
*/
|
|
19
|
-
remove(handler: T extends void ? {
|
|
20
|
-
(): void;
|
|
21
|
-
} : {
|
|
22
|
-
(data: T): void;
|
|
23
|
-
}): void;
|
|
24
|
-
/** Triggers all the callbacks assigned to this event. */
|
|
25
|
-
trigger: (data?: T) => void;
|
|
26
|
-
/** Gets rid of all the suscribed events. */
|
|
27
|
-
reset(): void;
|
|
28
|
-
private handlers;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getUUID(): string;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import type { AnalyticFrame, AnalyticProjectionCamera, AnalyticProjectionHlr, AnalyticSolid } from "../shapes/analytic-solid.js";
|
|
3
|
-
export interface WorldTransform {
|
|
4
|
-
frame: AnalyticFrame;
|
|
5
|
-
scale: number;
|
|
6
|
-
}
|
|
7
|
-
export interface WorldNodeOptions {
|
|
8
|
-
id: string;
|
|
9
|
-
parent?: string;
|
|
10
|
-
definition?: string;
|
|
11
|
-
local?: THREE.Matrix4;
|
|
12
|
-
kind?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface WorldProjectedLine {
|
|
15
|
-
start: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
};
|
|
19
|
-
end: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
stroke_width: number | null;
|
|
24
|
-
stroke_color: [number, number, number] | null;
|
|
25
|
-
class?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface WorldProjectedLines {
|
|
28
|
-
name: string | null;
|
|
29
|
-
lines: WorldProjectedLine[];
|
|
30
|
-
}
|
|
31
|
-
export interface WorldProjectedSegment {
|
|
32
|
-
geometry: unknown;
|
|
33
|
-
class: string;
|
|
34
|
-
layer?: string | null;
|
|
35
|
-
source_entity_id?: string | null;
|
|
36
|
-
}
|
|
37
|
-
export interface WorldProjectedScene {
|
|
38
|
-
name: string | null;
|
|
39
|
-
segments: WorldProjectedSegment[];
|
|
40
|
-
}
|
|
41
|
-
export interface WorldProjectionView {
|
|
42
|
-
id: string;
|
|
43
|
-
camera: AnalyticProjectionCamera;
|
|
44
|
-
hlr?: AnalyticProjectionHlr;
|
|
45
|
-
}
|
|
46
|
-
export interface WorldExportedMesh {
|
|
47
|
-
bytes: Uint8Array;
|
|
48
|
-
report: unknown;
|
|
49
|
-
}
|
|
50
|
-
export interface WorldExportedFile {
|
|
51
|
-
text: string;
|
|
52
|
-
report: unknown;
|
|
53
|
-
}
|
|
54
|
-
export type WorldClashKind = "hard" | "touch" | "unresolved";
|
|
55
|
-
export interface WorldClash {
|
|
56
|
-
a: string;
|
|
57
|
-
b: string;
|
|
58
|
-
kind: WorldClashKind;
|
|
59
|
-
parts: [string, string];
|
|
60
|
-
detail?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface WorldClashOptions {
|
|
63
|
-
depth?: number;
|
|
64
|
-
}
|
|
65
|
-
export interface WorldProximity {
|
|
66
|
-
a: string;
|
|
67
|
-
b: string;
|
|
68
|
-
distance: number;
|
|
69
|
-
errorBound: number;
|
|
70
|
-
parts: [string, string];
|
|
71
|
-
points: [[number, number, number], [number, number, number]];
|
|
72
|
-
}
|
|
73
|
-
export type WorldGraphErrorCode = "duplicate_node" | "unknown_node" | "duplicate_definition" | "unknown_definition" | "definition_in_use" | "cycle" | "invalid_input" | "export" | "geometry" | "unknown";
|
|
74
|
-
export declare class WorldGraphError extends Error {
|
|
75
|
-
readonly code: WorldGraphErrorCode;
|
|
76
|
-
readonly detail: unknown;
|
|
77
|
-
constructor(code: WorldGraphErrorCode, message: string, detail?: unknown);
|
|
78
|
-
}
|
|
79
|
-
export declare function matrixToWorldTransform(matrix: THREE.Matrix4): WorldTransform;
|
|
80
|
-
export declare class WorldGraph {
|
|
81
|
-
private readonly kernel;
|
|
82
|
-
private readonly bindings;
|
|
83
|
-
private bindingOrder;
|
|
84
|
-
private disposed;
|
|
85
|
-
get nodeCount(): number;
|
|
86
|
-
get definitionCount(): number;
|
|
87
|
-
define(id: string, solid: AnalyticSolid): void;
|
|
88
|
-
defineLegacy(id: string, brepSerialized: string): void;
|
|
89
|
-
hasDefinition(id: string): boolean;
|
|
90
|
-
undefine(id: string): void;
|
|
91
|
-
addNode(options: WorldNodeOptions): void;
|
|
92
|
-
hasNode(id: string): boolean;
|
|
93
|
-
setLocal(id: string, local: THREE.Matrix4): void;
|
|
94
|
-
reparent(id: string, parent?: string): void;
|
|
95
|
-
removeNode(id: string): void;
|
|
96
|
-
getWorldMatrix(id: string): THREE.Matrix4;
|
|
97
|
-
getWorldBounds(id: string): THREE.Box3 | null;
|
|
98
|
-
clash(itemsA: string[], itemsB: string[], options?: WorldClashOptions): WorldClash[];
|
|
99
|
-
clearance(itemsA: string[], itemsB: string[], clearance: number): WorldProximity[];
|
|
100
|
-
distance(itemA: string, itemB: string, tolerance?: number): WorldProximity | null;
|
|
101
|
-
projectLines(items: string[], camera: AnalyticProjectionCamera, hlr?: AnalyticProjectionHlr, deflection?: number): WorldProjectedLines;
|
|
102
|
-
projectViews(items: string[], views: WorldProjectionView[], deflection?: number): Record<string, WorldProjectedScene>;
|
|
103
|
-
exportStl(items: string[], config?: Record<string, unknown>): WorldExportedMesh;
|
|
104
|
-
exportStep(items: string[], config?: Record<string, unknown>): WorldExportedFile;
|
|
105
|
-
exportIfc(items: string[], config?: Record<string, unknown>): WorldExportedFile;
|
|
106
|
-
bind(object: THREE.Object3D, id: string): void;
|
|
107
|
-
unbind(id: string): void;
|
|
108
|
-
sync(): void;
|
|
109
|
-
dispose(): void;
|
|
110
|
-
private syncObject;
|
|
111
|
-
private checkActive;
|
|
112
|
-
}
|