Personal tools
You are here: Home Forum Use trouble with GetShapesOnCylinder on Salome 8.4.0 and higher

trouble with GetShapesOnCylinder on Salome 8.4.0 and higher

Up to Use

trouble with GetShapesOnCylinder on Salome 8.4.0 and higher

Posted by Christophe Trophime at October 23. 2018

Hi,
I'm trying to use GetShapesOnCylinder in TUI to recover some faces

in a really simple example (see attach - the lines are comment out).

Using either salome 8.4.0 or 8.5.0 I cannot get any GetShapesOnCylinder* method working...
It also say that there is no shapes on cylinder whereas it should found 1!!!

Hole_Faces = geompy.GetShapesOnCylinder(Cut_1, geompy.ShapeType["FACE"], OZ, args.R, GEOM.ST_ON)
print "Len(Hole_Faces)=%d" % len(Hole_Faces)
HoleBord = geompy.CreateGroup(Cut_1, geompy.ShapeType["FACE"])
geompy.UnionList(HoleBord, Hole_Faces)

The only way I found to work is using GetShapesOnShape...

What I am missing?


Best
C

 

 

 

Attachments

Re: trouble with GetShapesOnCylinder on Salome 8.4.0 and higher

Posted by Saint Michael at October 23. 2018

Hi

Your error in calling GetShapesOnCylinder is theAxis=OZ whereas the axis of the cylinder your look for is OZ translated by ( 100, 100, 0)

St.Michael

Powered by Ploneboard
Document Actions