Commit c7f6808
Sketch mode partial execution (#9557)
* Change sketch block args to require a variable
The plane Object ID in frontend tests is wrong.
* Fix plane types to model ObjectId correctly
* Fix to send plane to engine at start of sketch block
Update test expectations
* Refactor existing code to use new helper function
* Fix sketch blocks to always provide on argument
* Update generated output for sketch block tests
* Add test sketching on offset plane
* Fix to find sketch block artifact
Ignore it for now.
* Update generated output
* Rename functions
* Make sure to mark the sketch block node whenever we mock execute
* Add sketch mode to state
* Skip non-sketch-block statements
Some tests are failing because ObjectIds are actually wrong.
* Change previous memory tuple to named struct
* Add scene objects to mock execution cache
* Fix delete sketch to use engine execution
* Add back assertions that IDs match the array index
* Simplify accessor and modifier functions
* Add failing test for sketch block on face
* Add support for sketch block `on` parameter to be a Face or Sketch
* Update output for sketch on face sim test
* Update the rest of the sim test output
* Fix sketch on face
* Add sketch on plane of sim test
* Add sketch on planeOf frontend test
* allow edit from cursor position in sketch blocks
* Update output after merging main
* Add comments about reading the cached module state
* Fix to never panic when cache length is unexpected
* Simplify cache rehydration
* Fix segment IDs in tests
---------
Co-authored-by: Kurt Hutten Irev-Dev <[email protected]>1 parent 53f56ef commit c7f6808
File tree
315 files changed
+19269
-3329
lines changed- e2e/playwright
- public/kcl-samples/screenshots
- rust
- kcl-lib
- src
- execution
- frontend
- lsp/kcl
- parsing
- std
- tests
- angled_line
- artifact_graph_example_code1
- artifact_graph_example_code_no_3d
- artifact_graph_example_code_offset_planes
- artifact_graph_sketch_on_face_etc
- basic_fillet_cube_close_opposite
- basic_fillet_cube_end
- basic_fillet_cube_next_adjacent
- basic_fillet_cube_previous_adjacent
- basic_fillet_cube_start
- basic_revolve_circle
- circle_three_point
- circular_pattern3d_a_pattern
- crazy_multi_profile
- cube_with_error
- cube
- double_close
- elliptic_curve_inches_regression
- error_revolve_on_edge_get_edge
- extrude_closes
- fillet-and-shell
- flush_batch_on_end
- function_sketch_with_position
- function_sketch
- helix_simple
- holes_cube
- i_shape
- implicit_close
- import_whole_simple
- import_whole_transitive_import
- intersect_cubes
- involute_circular_units
- kcl_samples
- ball-bearing
- battery-module-cooling-plate
- bench-for-kids
- bike-hub-washer
- bone-plate
- bottle
- box
- bracket
- c-shape-solid
- clock
- cold-plate
- color-cube
- cone
- counterdrilled-weldment
- countersunk-plate
- crash-box
- curtain-wall-anchor-plate
- cylinder
- desk-edge-stopper
- dining-table
- dodecahedron
- enclosure
- end-effector-gripper-fingers
- engine-valve
- exhaust-manifold
- field-monitor-stand
- flange
- flat-bladed-impeller
- focusrite-scarlett-mounting-bracket
- food-service-spatula
- french-press
- gear-rack
- gingerbread-man-cookie-cutter
- gingerbread-man
- golf-tee
- gridfinity-baseplate-magnets
- gridfinity-baseplate
- gridfinity-bins-stacking-lip
- gridfinity-bins
- hammer
- helium-tank
- hex-nut-with-chamfer
- holder-rod-angle
- i-beam
- inner-thread
- keyboard
- kitt
- lego
- linear-shelf-system
- makeup-mirror
- manhole-cover
- marine-ladder
- modular-shelf-grid
- mounting-plate
- mug
- parametric-shelf-unit
- pdu-faceplate
- pergola
- pipe-manifold
- pipe-with-bend
- pipe
- poopy-shoe
- propellant-line-brackets
- propeller
- prosthetic-hip
- rack-blanking-panel
- radial-flow-centrifugal-impeller
- rectangle-table
- round-table
- router-template-cross-bar
- router-template-slate
- sash-window
- saturn-v
- scrub-daddy-holder
- shaft-grommet
- sheet-metal-bracket
- shepherds-hook-bolt
- single-impeller-blade
- sls
- socket-head-cap-screw
- sphere
- spinning-highrise-tower
- split-washer-flat-version
- split-washer-spring-version
- spool
- starlink-mini-bracket
- straight-rung-ladder
- stylized-car
- stylized-cybertruck
- stylized-dump-truck
- stylized-firetruck
- stylized-mini-bus
- stylized-pickup-truck
- surgical-drill-guide
- t-slot-rectangle
- teapot
- telemetry-antenna
- thermal-block-insert
- tooling-nest-block
- torus
- truss-structure
- tube-manifold
- utility-sink
- v-block
- washer
- wedge
- wheel-hub
- wind-turbine-blade-root-inserts
- wing-spar
- zoo-logo
- kittycad_svg
- linear_pattern3d_a_pattern
- loop_tag
- mike_stress_test
- multi_body_multi_tool_subtract
- multi_target_csg
- neg_xz_plane
- out_of_band_sketches
- panic_repro_cube
- parametric_with_tan_arc
- parametric
- pattern_into_union
- pentagon_fillet_sugar
- plane_of_chamfer
- plane_of
- poop_chute
- property_access_not_found_on_solid
- rect_helper
- rect
- revolve-colinear
- revolve_about_edge
- revolve_on_face
- riddle_small
- sketch-on-chamfer-two-times-different-order
- sketch-on-chamfer-two-times
- sketch_block_arc_using_center_coincident
- sketch_block_arc_using_center_simple
- sketch_block_basic_fixed_constraints
- sketch_block_coincident_constraint
- sketch_block_failed_unit_conversion
- sketch_block_line_simple
- sketch_block_lines_coincident_simple
- sketch_block_modeling_command_is_error
- sketch_block_on_face
- sketch_block_on_offset_plane
- sketch_block_on_plane_of
- sketch_block_points_coincident_simple
- sketch_in_object
- sketch_on_face_after_fillets_referencing_face
- sketch_on_face_circle_tagged
- sketch_on_face_end_negative_extrude
- sketch_on_face_end
- sketch_on_face_normal_inches
- sketch_on_face_normal
- sketch_on_face_start
- sketch_on_face_union
- sketch_on_face
- ssi_pattern
- subtract_cylinder_from_cube
- subtract_doesnt_need_brackets
- subtract_regression00
- subtract_regression01
- subtract_regression02
- subtract_regression03
- subtract_regression04
- subtract_regression05
- subtract_regression06
- subtract_regression07
- subtract_regression08
- subtract_regression09
- subtract_regression10
- subtract_regression11
- subtract_regression12
- subtract_self_multiple_tools
- subtract_self
- subtract_with_pattern_cut_thru
- subtract_with_pattern
- tag_inner_face
- tangent_to_3_point_arc
- tangential_arc
- union_cubes
- union_self
- user_reported_union_2_bug
- xz_plane
- kcl-wasm-lib/src
- src
- components
- lang/std
- lib
- machines/sketchSolve
- tools/moveTool
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
315 files changed
+19269
-3329
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | | - | |
342 | | - | |
| 341 | + | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
137 | 150 | | |
138 | 151 | | |
139 | 152 | | |
| |||
0 commit comments