brepjs 18.129.0 → 18.131.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/dist/brepjs.cjs +142 -18
- package/dist/brepjs.js +143 -19
- package/dist/csg/builders.d.ts +7 -1
- package/dist/csg/evaluators/fillet.d.ts +5 -0
- package/dist/csg/index.d.ts +2 -2
- package/dist/csg/serialize.d.ts +1 -1
- package/dist/csg/types.d.ts +11 -1
- package/dist/{healingFns-DTr6cgTb.cjs → healingFns-BqmIvfPm.cjs} +554 -554
- package/dist/{healingFns-BptGY1Th.js → healingFns-BrrTpxjI.js} +555 -555
- package/dist/topology.cjs +1 -1
- package/dist/topology.js +1 -1
- package/package.json +2 -1
package/dist/csg/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Expr } from './expressions.js';
|
|
2
2
|
import { Contour, Segment2D } from './segments.js';
|
|
3
|
+
import { EdgeRef } from '../topology/shapeRef/shapeRefTypes.js';
|
|
3
4
|
import { Matrix4x4 } from '../core/types.js';
|
|
4
5
|
export type OutputKind = 'Solid' | 'Face' | 'Wire' | 'Edge' | 'Vertex' | 'Compound';
|
|
5
6
|
/** Output kinds that have a corresponding empty-shape builder + serializer. */
|
|
@@ -124,6 +125,15 @@ export interface RevolveNode extends IRNodeBase {
|
|
|
124
125
|
readonly axis?: Expr | undefined;
|
|
125
126
|
readonly at?: Expr | undefined;
|
|
126
127
|
}
|
|
128
|
+
export interface FilletNode extends IRNodeBase {
|
|
129
|
+
readonly kind: 'Fillet';
|
|
130
|
+
readonly target: IRNode;
|
|
131
|
+
/** Serializable lineage ref naming the edge by its two adjacent face roles.
|
|
132
|
+
* Pure data, so it hashes like any other field; resolution against the
|
|
133
|
+
* materialized target happens inside evaluation. */
|
|
134
|
+
readonly ref: EdgeRef;
|
|
135
|
+
readonly radius: Expr;
|
|
136
|
+
}
|
|
127
137
|
export interface ColorNode extends IRNodeBase {
|
|
128
138
|
readonly kind: 'Color';
|
|
129
139
|
readonly target: IRNode;
|
|
@@ -176,7 +186,7 @@ export interface InstanceNode extends IRNodeBase {
|
|
|
176
186
|
export type PrimitiveNode = BoxNode | SphereNode | CylinderNode | ConeNode | TorusNode | PolygonNode | CircleNode | LineNode | VertexLitNode | EmptyNode;
|
|
177
187
|
export type BooleanNode = FuseNode | CutNode | IntersectNode | FuseAllNode | CutAllNode;
|
|
178
188
|
export type TransformIRNode = TranslateNode | RotateNode | ScaleNode | MirrorNode;
|
|
179
|
-
export type IRNode = PrimitiveNode | BooleanNode | TransformIRNode | ExtrudeNode | RevolveNode | LoftNode | SweepNode | ProfileNode | PathNode | ColorNode | CompoundNode | InstanceNode;
|
|
189
|
+
export type IRNode = PrimitiveNode | BooleanNode | TransformIRNode | ExtrudeNode | RevolveNode | LoftNode | SweepNode | ProfileNode | PathNode | ColorNode | FilletNode | CompoundNode | InstanceNode;
|
|
180
190
|
export type NodeKind = IRNode['kind'];
|
|
181
191
|
export type AnyNode = IRNode;
|
|
182
192
|
/** Nodes that produce a 3D solid. */
|