For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Problems using gp_Cone and associated functions

Christian Krueger's picture
Forums: 

I like to construct a cone-(face) for analytical purpose.

Unfortunately I wasn't able to produce a somewhat usable entity with f.e.:

BRepBuilderAPI_MakeFace makeCone(gp_Cone(gp_Ax3(gp_Pnt(-10.0, 0.0, 0.0), gp_Dir(0.0, 0.0, 1.0), gp_Dir(1.0, 0.0, 0.0)), M_PI_4, 0.0));

auto faceCone = makeCone.Face();

I'm not able to intersect this cone with a plane (neither BRepAlgo_Section nor BRepAlgoAPI_Common returns an expected contour) and

even the bounding box of the cone looks suspicious:

Bnd_Box B;

BRepBndLib::Add(faceCone, B);
Standard_Real Xmin, Ymin, Zmin, Xmax, Ymax, Zmax;

B.Get(Xmin, Ymin, Zmin, Xmax, Ymax, Zmax);

gives unlimited space (-1.0e+100, -1.0e+100, -1.0e+100, 1.0e+100, 1.0e+100, 1.0e+100) - while I would expect the minimum point in(-10.0, 0.0, 0.0) as given.

Is this behavior expected and/or where is my error in reasoning?

Thanks

Christian