Cylindrical Surface

Hi,

How do I find whether 'Geom_CylindricalSurface' is Hollow cylinder or Solid cylinder??

Shylesh

fhchina's picture

Write this code:

Handle(Geom_CylindricalSurface) aSurf = new ...
// Construct its bounding wire
TopoDS_Wire aWire = ...
TopoDS_Face aFace(aSurf, aWire);

hAISContext->Display(new AIS_Shape(aFace));

You can then rotate it in your program to see if it is hollow or solid(use Shaded mode)

Nilesh's picture

Hi,

Sorry, i don't want to see it on display. I want to programmatically find out if the cylindrical surface corresponds to hollow or filled...

shylesh