brep-io-kernel 1.0.98 → 1.0.99
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-kernel/brep-kernel.js +24918 -23977
- package/package.json +1 -1
- package/src/BREP/SolidMethods/booleanOps.js +20 -4
- package/src/UI/sketcher/SketchMode3D.js +157 -33
- package/src/UI/sketcher/dimensions.js +59 -0
- package/src/UI/sketcher/glyphs.js +31 -0
- package/src/UI/sketcher/highlights.js +3 -1
- package/src/features/hole/HoleFeature.js +264 -17
- package/src/features/sketch/SketchFeature.js +117 -12
- package/src/features/sketch/sketchSolver2D/ConstraintEngine.js +42 -7
- package/src/features/sketch/sketchSolver2D/constraintDefinitions.js +104 -0
- package/src/tests/fixtures/sketchSolverTopology/README.md +46 -0
- package/src/tests/fixtures/sketchSolverTopology/coincident_chain_fixture.json +48 -0
- package/src/tests/fixtures/sketchSolverTopology/rect_width_height_fixture.json +43 -0
- package/src/tests/fixtures/sketchSolverTopology/sketch_throttel_expression_sequence_fixture.json +25 -0
- package/src/tests/partFiles/sketch_throttel_testing.BREP.json +562 -0
- package/src/tests/sketchSolverTopologyFixtureLoader.js +308 -0
- package/src/tests/test_sketch_solver_topology_stability.js +348 -0
- package/src/tests/tests.js +17 -0
package/src/tests/tests.js
CHANGED
|
@@ -23,6 +23,15 @@ import { test_tube_closedLoop } from './test_tube_closedLoop.js';
|
|
|
23
23
|
import { test_offsetShellGrouping } from './test_offsetShellGrouping.js';
|
|
24
24
|
import { test_pushFace, afterRun_pushFace } from './test_pushFace.js';
|
|
25
25
|
import { test_sketch_openLoop, afterRun_sketch_openLoop } from './test_sketch_openLoop.js';
|
|
26
|
+
import {
|
|
27
|
+
test_sketch_solver_topology_rect_shared_points,
|
|
28
|
+
test_sketch_solver_topology_coincident_chain,
|
|
29
|
+
test_sketch_solver_topology_coincident_loop_no_flip,
|
|
30
|
+
test_sketch_solver_topology_rect_round_trip_sequence,
|
|
31
|
+
test_sketch_solver_topology_coincident_chain_multi_step,
|
|
32
|
+
test_sketch_solver_distance_slide_large_drop_settles_single_solve,
|
|
33
|
+
} from './test_sketch_solver_topology_stability.js';
|
|
34
|
+
import { registerSketchSolverTopologyFixtureTests } from './sketchSolverTopologyFixtureLoader.js';
|
|
26
35
|
import { test_Fillet_NonClosed, afterRun_Fillet_NonClosed } from './test_fillet_nonClosed.js';
|
|
27
36
|
import { test_history_features_basic, afterRun_history_features_basic } from './test_history_features_basic.js';
|
|
28
37
|
import { test_textToFace, afterRun_textToFace } from './test_textToFace.js';
|
|
@@ -63,6 +72,12 @@ export const testFunctions = [
|
|
|
63
72
|
{ test: test_tube, printArtifacts: false, exportFaces: true, exportSolids: true, resetHistory: true },
|
|
64
73
|
{ test: test_tube_closedLoop, printArtifacts: false, exportFaces: true, exportSolids: true, resetHistory: true },
|
|
65
74
|
{ test: test_sketch_openLoop, afterRun: afterRun_sketch_openLoop, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
75
|
+
{ test: test_sketch_solver_topology_rect_shared_points, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
76
|
+
{ test: test_sketch_solver_topology_coincident_chain, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
77
|
+
{ test: test_sketch_solver_topology_coincident_loop_no_flip, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
78
|
+
{ test: test_sketch_solver_topology_rect_round_trip_sequence, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
79
|
+
{ test: test_sketch_solver_topology_coincident_chain_multi_step, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
80
|
+
{ test: test_sketch_solver_distance_slide_large_drop_settles_single_solve, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
66
81
|
{ test: test_offsetShellGrouping, printArtifacts: false, exportFaces: false, exportSolids: false, resetHistory: true },
|
|
67
82
|
{ test: test_ExtrudeFace, printArtifacts: false, exportFaces: true, exportSolids: true, resetHistory: true },
|
|
68
83
|
{ test: test_Fillet, printArtifacts: false, exportFaces: true, exportSolids: true, resetHistory: true },
|
|
@@ -177,6 +192,8 @@ export async function runTests(partHistory = new PartHistory(), callbackToRunBet
|
|
|
177
192
|
|
|
178
193
|
// Discover and register part-file import tests (Node only)
|
|
179
194
|
await registerPartFileTests();
|
|
195
|
+
// Discover and register sketch solver topology fixtures (Node only)
|
|
196
|
+
await registerSketchSolverTopologyFixtureTests(testFunctions);
|
|
180
197
|
|
|
181
198
|
for (const testFunction of testFunctions) {
|
|
182
199
|
const isLastTest = testFunction === testFunctions[testFunctions.length - 1];
|