tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.31k stars 373 forks source link

TopAbs_Print() #822

Open ANkhan-93 opened 4 years ago

ANkhan-93 commented 4 years ago

Hi all, I am an infant when it comes to pythonOCC. I am still learning it and trying a few things here and there.

I want to ask about the TopAbs package that contains the ShapeEnum enumeration for the different topology shapes. I was trying to use the " topabs_Print() " function.

Topabs_Print() : Prints the name of Shape SEq as a String on the Stream S and returns S.

So the first parameter SEq should be an integer and it should give me the corresponding topology name. I don't understand understand, what is the second parameter S. I have tried different things but this function doesn't work. It says the second function should be of type Standar_OStream & .

tpaviot commented 4 years ago

The Standard_Ostream is some c++ specific stuff. What do you want to do ? there is a pythonic way to achieve it

ANkhan-93 commented 4 years ago

Hello, Thank you for your reply.. Actually I am working on my thesis, part of which includes learning about OCC. If its not too complicated, it would be nice if I could use this TopAbs_Print() to reconcile the different topology types with their corresponding enumeration.

Thanks