hr Tue, 06/14/2011 - 14:34 Forums: Other usage issueshello, i want to get the edges from a cylinder(gp_Cylinder); can you give me a hint? Thank you for your attentation! Fabian Hachenberg Tue, 06/14/2011 - 14:40 Have a look at TopExp_Explorer. It allows to iterate over specific subshapes. TopExp_Explorer ex; ex.Init(face, TopAbs_EDGE, 0) for(;ex.More(); ex.Next()) { ... } Log in to post comments hr Tue, 06/14/2011 - 14:43 I want to konw how can i translate the gp_Cylinder to face, gp_cylinder clinder; TopDs_Face face=.... Log in to post comments Fabian Hachenberg Tue, 06/14/2011 - 15:00 Use BRepPrimAPI_MakeCylinder if you want to create a face on an infinite cylindrical surface You can also create a cylinder primitive including the upper und lower circular planes via BRepPrimAPI_MakeOneAxis Log in to post comments Fabian Hachenberg Tue, 06/14/2011 - 15:01 whoops, sorry use BRepBuilderAPI_MakeFace for the face on the cylindrical surface and use BRepPrimAPI_MakeCylinder to create a cylinder primitive Log in to post comments
Tue, 06/14/2011 - 14:40
Have a look at TopExp_Explorer. It allows to iterate over specific subshapes.
TopExp_Explorer ex;
ex.Init(face, TopAbs_EDGE, 0)
for(;ex.More(); ex.Next())
{
...
}
Tue, 06/14/2011 - 14:43
I want to konw how can i translate the gp_Cylinder to face,
gp_cylinder clinder;
TopDs_Face face=....
Tue, 06/14/2011 - 15:00
Use
BRepPrimAPI_MakeCylinder
if you want to create a face on an infinite cylindrical surface
You can also create a cylinder primitive including the upper und lower circular planes via
BRepPrimAPI_MakeOneAxis
Tue, 06/14/2011 - 15:01
whoops, sorry
use
BRepBuilderAPI_MakeFace
for the face on the cylindrical surface and
use
BRepPrimAPI_MakeCylinder
to create a cylinder primitive