zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
998 stars 122 forks source link

Chamfer/Fillet/Union/Difference unexpected behavior #119

Closed Billiam closed 2 years ago

Billiam commented 2 years ago

This may just be my misunderstanding, but I'm running into a couple of issues related to chamfers and fillets:

Example

When applying a chamfer to one or more already-filleted edges, the edge which will be chamfered is unpredictable and doesn't respect the selected edge(s), and then the filleted edge reappears.

When a shape with a chamfer is Unioned or Differenced with anything else (including just Union([self])), the previously chamfered edges reappear in place.

raydeleu commented 2 years ago

I think you have to redefine the variable in which you declare the shape, so for example:

surface2 = FilletEdges(surface2, 10, [1, 3, 5, 7], false)

instead of using only the FilletEdges command. Once you do that, it seems to work correctly. It could be that by just performing the function you only adapt the displayed object, not the named object.

Billiam commented 2 years ago

Oh my goodness, of course