Personal tools
You are here: Home Forum Use Error with MakeVertex

Error with MakeVertex

Up to Use

Error with MakeVertex

Posted by Mayank Sabharwal at September 27. 2012

Hello Everyone,

I am trying to build a geometry based on a python numpy array. But when I try to add a vertex I am getting the following error:

    p1=geompy.MakeVertex(p,q,r)
  File "/global/SciComp/Salome/appli_V6_4_0/bin/salome/geompyDC.py", line 478, in MakeVertex
    anObj = self.BasicOp.MakePointXYZ(theX, theY, theZ)
  File "/global/SciComp/Salome/appli_V6_4_0/lib/python2.6/site-packages/salome/GEOM_Gen_idl.py", line 518, in MakePointXYZ
    return _omnipy.invoke(self, "MakePointXYZ", _0_GEOM.GEOM_IBasicOperations._d_MakePointXYZ, args)
omniORB.CORBA.BAD_PARAM: CORBA.BAD_PARAM(omniORB.BAD_PARAM_WrongPythonType, CORBA.COMPLETED_NO)

where

i is a for loop counter

p=x[i]
q=y[i]
 r=z[i]

Could some plese help me out with this.

Thanks,

Mayank

Re: Error with MakeVertex

Posted by Saint Michael at September 27. 2012

Hello Mayank

BAD_PARAM_WrongPythonType error means that some of arguments is not of a numeric type. To find out which arg is wrong just print them before calling p1=geompy.MakeVertex(p,q,r)

 >>> print p,q,r

St.Michael

Powered by Ploneboard
Document Actions