hlorus / CAD_Sketcher

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

[BUG] Lines sketch has unexpected extra content after being converted to mesh and solidified #440

Closed dtremain closed 5 months ago

dtremain commented 5 months ago

Contact Details

dotremain@hotmail.com

Description

With a sketch of 12 2D lines of equal distance arranged as a plus (+) horizontal or vertical, converted to mesh, adding a solidify modifier with a thickness of 15 results in a object with multiple triangles, each with one vertex significantly above the specified thickness. CADSketcher_ShaftLines I was unable to remove the unexpected extra constructs using any variation of the decimate modifier. To duplicate, use the following steps: new > general > delete camera, light, cube Add sketch on the XY plane Adding 2D lines and click on the following coordinates -2,3; -2,0; -5,0; -5,-3; -2,-3; -2,-6; 1,-6; 1,-3; 4,-3; 4,0; 1,0; 1,3; -2,3. <Using Ln in the following section to indicate a line, where n is the corresponding analog clock face number of the line's position, with 12 as the top line (line segment -2,3 | 1,3) >. All lines have their appropriate vertical or horizontal constraint. Add constraints. L11 Distance = 4.9; L11, L1 EQ (Equal); L1, L5 EQ; L5, L7 EQ; L7, L12 EQ; L12, L6 EQ; L6, L9 EQ; L9, L10 EQ; L10, L3 EQ. Set Name to Shaft, Convert to as Mesh, Exit sketch. Select Shaft object. Add modifier. Set Thickness 15.

When I first discovered this, the triangles were different in number, location, and orientation. I'm sure I didn't use the exact same quantity, pairing and sequence for the Equal constraints, so my guess is that the Equal constraints have some relevance to the unexpected behavior.

I will try to upload the blender file, CADSketcher_ShaftLines.blend, so you can examine it directly.

Addon Version

0.27.3

Blender Version

4.0.2 & 3.6.4

What platform are you running on?

Windows

dtremain commented 5 months ago

pasteall.org/blend is not available. See Discord cad-sketcher for the .blend file.

dtremain commented 5 months ago

If you set Mesh Curve Resolution to 1 (3 also seemed to work), the behavior disappears. Just be aware that the result of changing the Mesh Curve Resolution setting cannot be seen UNTIL you leave the sketch.