I created a torus, and then created 2 rotated versions of it. When I try to fuse them together, I get this error:
BRep_Tool:: TopoDS_Vertex hasn’t gp_Pnt
I am new to Salome, so I am not sure what is wrong. Hopefully it is something easy to fix…
In case it is useful, here is the python study dump of everything prior to calling Fuse in the UI:
#!/usr/bin/env python
###
### This file is generated automatically by SALOME v9.8.0 with dump python functionality
###
import sys
import salome
salome.salome_init()
import salome_notebook
notebook = salome_notebook.NoteBook()
sys.path.insert(0, r'/home/vector/SALOME-9.8.0')
###
### GEOM component
###
import GEOM
from salome.geom import geomBuilder
import math
import SALOMEDS
geompy = geomBuilder.New()
O = geompy.MakeVertex(0, 0, 0)
OX = geompy.MakeVectorDXDYDZ(1, 0, 0)
OY = geompy.MakeVectorDXDYDZ(0, 1, 0)
OZ = geompy.MakeVectorDXDYDZ(0, 0, 1)
Torus_1 = geompy.MakeTorusRR(200, 5)
geompy.Rotate(Torus_1, OY, 90*math.pi/180.0)
Rotation_1 = geompy.MakeRotation(Torus_1, OZ, 59.99999999999999*math.pi/180.0)
Rotation_2 = geompy.MakeRotation(Rotation_1, OZ, 59.99999999999999*math.pi/180.0)
geompy.addToStudy( O, 'O' )
geompy.addToStudy( OX, 'OX' )
geompy.addToStudy( OY, 'OY' )
geompy.addToStudy( OZ, 'OZ' )
geompy.addToStudy( Torus_1, 'Torus_1' )
geompy.addToStudy( Rotation_1, 'Rotation_1' )
geompy.addToStudy( Rotation_2, 'Rotation_2' )
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()