Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

spherical shape

spherical shape
hero 2013/02/04 22:22
Hay there ...

Can anybody provide me a code to create sphere from center point coordinates (X,Y,Z) and its Radius ???? kindly along with required Header file plz ????

Thanx in Advance

Regards
jelle 2013/02/04 22:47
Sure, send me your homework too ;)
You're looking for the BRepPrimAPI_MakeSphere class:

ipdb> BRepPrimAPI_MakeSphere(gp_Pnt(), 1).Shape()
<OCC.TopoDS.TopoDS_Shape; proxy of <Swig Object of type 'TopoDS_Shape *' at 0x11ee99d50> >

-jelle
hero 2013/02/05 17:24
Dear Jelle

I could not understand your post ........
and do you need my homework ????

Regards
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map