Mon, 09/19/2011 - 12:47
Forums:
Hy
I want to trim a cylinder with 3 wires, 2 for the limits (top and bottom) and 1 for a hole.
I try with MakeFace, but it does not work.
Can you held me ??
I give you, a picture, to more explain my problem.
Thanks for all
Roseline
Attachments:
Tue, 09/20/2011 - 11:00
Nobody can help me??
If you want more explications on my problem
do not hesitate to ask me questions
Thanks for all
Roseline
Tue, 09/20/2011 - 20:34
Hi Roseline,
could you please post your sourcecode so we can see, how you're trying to do it?
Wed, 09/21/2011 - 11:41
Hi Fabian
my sourcecode :
I have in entry a TopoDS_Face: F and 3 TopoDS_Wire: Wtop, Wbottom, and Whole
BRepAPI_MakeFace mkFace(F);
mkFace.Add(Wtop);
mkFace.Add(Wbottom);
mkFace.Add(Whole);
mkFace.Build();
if (mkFace.IsDone())
{
TopoDS_Face result = mkFace.Face();
}
I attached the result.
Can you said me the problem??
Thanks
Roseline
Mon, 09/26/2011 - 11:09
Nobody can say me if there is a mistake in my source code??
I have to used a another method??
Thanks for all
Roseline
Mon, 09/26/2011 - 18:14
Hi Roseline,
by the image attached it seems that the result face has orientation problem.
Try the ShapeFix_Face:
ShapeFix_Face sff( result );
sff.FixOrientation();
sff.Perform();
TopoDS_Face fixedFace = sff.Face();
Regards,
Gabriel