hlorus / CAD_Sketcher

Constraint-based geometry sketcher for blender
GNU General Public License v3.0
2.69k stars 129 forks source link

have workplane rotate with object rotation #10

Open theoryshaw opened 2 years ago

theoryshaw commented 2 years ago

Motivation / Existing Problem When you create an extrusion, for example, from a sketch, and then rotate it, and then edit the sketch again, it resets the rotation of the object.

Description When you create an extrusion, for example, from a sketch, and then rotate it, and then edit the sketch again, the sketch's workplane would be orthogonal to the rotation of the extrusion.

Mockup 2022-02-13_11-52-51_Blender_blender 2022-02-13_11-53-02_Blender_blender after rotation... 2022-02-13_11-53-21_Blender_blender 2022-02-13_11-54-37_Blender_blender

hlorus commented 2 years ago

This is quite a fundamental design topic.

Converted objects currently aren't ment to be translated. Whenever you create a part that consists of multiple sketches the part's local space is simply the world space.

The intended workflow for placing a created part somewhere in 3d would be to create a linked duplicate and transform this instead.

While this would probably support most usecases and could even be automated it indeed wouldn't allow for things like in-place editing and referencing surrounding geometry.

hlorus commented 2 years ago

I've made a quick test where the workplane is based on a root object.

https://user-images.githubusercontent.com/64740362/154031336-9f3d202c-9ab8-4812-b3d7-e960d2efd226.mp4

Might be a good approach however such root objects should be supported for all 3d entity types.

theoryshaw commented 2 years ago

very cool.

Do you think you could rotate multiple objects at a time, like the following--which happens quite often.

https://user-images.githubusercontent.com/507113/154074383-c077c94e-6fa8-43c3-ad84-455a8f70a7d3.mp4

hlorus commented 2 years ago

The root is just a regular blender object so you can use native selection and transformation tools.