Jason Hoogland a écrit :
> Hi,
>
> How would I save the makeBottle shape as an STL file?
>
> Jason
>
>
>   
Hi Jason,

You can use either the StlAPI or StlAPI_Writer classes. Both allow to 
create stl files, but you can define deflection/coefficients with 
StlAPI_Writer.

Here is a simple example that create a sphere and save the result in a 
STL file:

# Create sphere
S = OCC.BRepPrimAPI_MakeSphere(50)
S_shape = S.Shape()
# Export to STL
stl_export = OCC.StlAPI()
stl_export.Write(S_shape,"sphere.stl")

Best regards,

Thomas



_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to