Skip to content

Commit 23d6f19

Browse files
base namespaces updated.
1 parent 32d98e0 commit 23d6f19

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

packages/dev/babylonjs/lib/api/inputs/base-inputs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export namespace Base {
2222
export type Vector3 = [number, number, number];
2323
export type Axis3 = {origin: Base.Point3, direction: Base.Vector3};
2424
export type Axis2 = {origin: Base.Point2, direction: Base.Vector2};
25+
export type Segment2 = [Point2, Point2];
26+
export type Segment3 = [Point3, Point3];
27+
// Triangle plane is efficient defininition described by a normal vector and d value (N dot X = d)
28+
export type TrianglePlane3 = { normal: Vector3; d: number; }
29+
export type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
30+
export type Mesh3 = Triangle3[];
2531
export type Plane3 = { origin: Base.Point3, normal: Base.Vector3, direction: Base.Vector3 };
2632
export type BoundingBox = { min: Base.Point3, max: Base.Point3, center?: Base.Point3, width?: number, height?: number, length?: number };
2733
export type Line2 = { start: Base.Point2, end: Base.Point2 };

packages/dev/core/lib/api/inputs/base-inputs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ export namespace Base {
2121
export type Vector3 = [number, number, number];
2222
export type Axis3 = {origin: Base.Point3, direction: Base.Vector3};
2323
export type Axis2 = {origin: Base.Point2, direction: Base.Vector2};
24+
export type Segment2 = [Point2, Point2];
25+
export type Segment3 = [Point3, Point3];
26+
// Triangle plane is efficient defininition described by a normal vector and d value (N dot X = d)
27+
export type TrianglePlane3 = { normal: Vector3; d: number; }
28+
export type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
29+
export type Mesh3 = Triangle3[];
2430
export type Plane3 = { origin: Base.Point3, normal: Base.Vector3, direction: Base.Vector3 };
2531
export type BoundingBox = { min: Base.Point3, max: Base.Point3, center?: Base.Point3, width?: number, height?: number, length?: number };
2632
export type Line2 = { start: Base.Point2, end: Base.Point2 };

packages/dev/jscad/lib/api/inputs/base-inputs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export namespace Base {
88
export type Vector3 = [number, number, number];
99
export type Axis3 = {origin: Base.Point3, direction: Base.Vector3};
1010
export type Axis2 = {origin: Base.Point2, direction: Base.Vector2};
11+
export type Segment2 = [Point2, Point2];
12+
export type Segment3 = [Point3, Point3];
13+
// Triangle plane is efficient defininition described by a normal vector and d value (N dot X = d)
14+
export type TrianglePlane3 = { normal: Vector3; d: number; }
15+
export type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
16+
export type Mesh3 = Triangle3[];
1117
export type Plane3 = { origin: Base.Point3, normal: Base.Vector3, direction: Base.Vector3 };
1218
export type BoundingBox = { min: Base.Point3, max: Base.Point3, center?: Base.Point3, width?: number, height?: number, length?: number };
1319
export type Line2 = { start: Base.Point2, end: Base.Point2 };

packages/dev/manifold/lib/api/inputs/base-inputs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export namespace Base {
88
export type Vector3 = [number, number, number];
99
export type Axis3 = {origin: Base.Point3, direction: Base.Vector3};
1010
export type Axis2 = {origin: Base.Point2, direction: Base.Vector2};
11+
export type Segment2 = [Point2, Point2];
12+
export type Segment3 = [Point3, Point3];
13+
// Triangle plane is efficient defininition described by a normal vector and d value (N dot X = d)
14+
export type TrianglePlane3 = { normal: Vector3; d: number; }
15+
export type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
16+
export type Mesh3 = Triangle3[];
1117
export type Plane3 = { origin: Base.Point3, normal: Base.Vector3, direction: Base.Vector3 };
1218
export type BoundingBox = { min: Base.Point3, max: Base.Point3, center?: Base.Point3, width?: number, height?: number, length?: number };
1319
export type Line2 = { start: Base.Point2, end: Base.Point2 };

packages/dev/threejs/lib/api/inputs/base-inputs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export namespace Base {
99
export type Vector3 = [number, number, number];
1010
export type Axis3 = {origin: Base.Point3, direction: Base.Vector3};
1111
export type Axis2 = {origin: Base.Point2, direction: Base.Vector2};
12+
export type Segment2 = [Point2, Point2];
13+
export type Segment3 = [Point3, Point3];
14+
// Triangle plane is efficient defininition described by a normal vector and d value (N dot X = d)
15+
export type TrianglePlane3 = { normal: Vector3; d: number; }
16+
export type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
17+
export type Mesh3 = Triangle3[];
1218
export type Plane3 = { origin: Base.Point3, normal: Base.Vector3, direction: Base.Vector3 };
1319
export type BoundingBox = { min: Base.Point3, max: Base.Point3, center?: Base.Point3, width?: number, height?: number, length?: number };
1420
export type Line2 = { start: Base.Point2, end: Base.Point2 };

0 commit comments

Comments
 (0)