FaceBinder: What is meant by the Sew property?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
FaceBinder: What is meant by the Sew property?
I do not understand what is meant by the Sew property of a FaceBinder. Changing it seems to have no effect?
Re: FaceBinder: What is meant by the Sew property?
If there are e.g. two faces inside a compound that visually share an edge then in the topology there are still two edges. The sew operation changes the topology to share sub-shapes where needed. The operation may also result in changing the shape type.
Example code:
Example code:
Code: Select all
import FreeCAD
import Part
f1=Part.makePlane(10,10,FreeCAD.Vector(0,0,0))
f2=Part.makePlane(10,10,FreeCAD.Vector(10,0,0))
shape=Part.Compound([f1,f2])
shape.ShapeType
#Compound
len(shape.Edges)
#8
shape.sewShape()
shape.ShapeType
#Shell
len(shape.Edges)
#7
Re: FaceBinder: What is meant by the Sew property?
Thanks for your explanation. I think I understand on a theoretical level, but would there be a FaceBinder example where this would have a visible effect?
Re: FaceBinder: What is meant by the Sew property?
Being an absolute neophyte at Python, I can't get this to work. I tried adding
Code: Select all
from FreeCAD import Part
from FreeCAD import Base
Edit: nevermind, I loaded the Part workbench and this fixed it.
Re: FaceBinder: What is meant by the Sew property?
I fixed the code to explicitly import Part.
Re: FaceBinder: What is meant by the Sew property?
Trying to understand the Sew & Remove Splitter, Do you have more links/understanding on this.
Many thanks.
Re: FaceBinder: What is meant by the Sew property?
Sew:
I still do not understand 'Sew'. A facebinder is already a shell by default, and not a compound, it seems:
Remove Splitter:
In the attached example faces from two stacked boxes were used as the source for two facebinders. The FB on the right has 'Remove Splitter' set to 'True'.
I still do not understand 'Sew'. A facebinder is already a shell by default, and not a compound, it seems:
Code: Select all
>>> fb = App.ActiveDocument.Facebinder
>>> fb.Shape.ShapeType
'Shell'
Remove Splitter:
In the attached example faces from two stacked boxes were used as the source for two facebinders. The FB on the right has 'Remove Splitter' set to 'True'.
- Attachments
-
- facebinder-remove-splitter.png (3.52 KiB) Viewed 2108 times
-
- facebinder-remove-splitter.FCStd
- (10.97 KiB) Downloaded 45 times