noNETGENPlugin = 1
pass
+LIBRARY = "libNETGENEngine.so"
+
#----------------------------
# Mesh algo type identifiers
#----------------------------
def __init__(self, mesh, geom=0):
Mesh_Algorithm.__init__(self)
if noNETGENPlugin: print "Warning: NETGENPlugin module unavailable"
- self.Create(mesh, geom, self.algoType, "libNETGENEngine.so")
+ self.Create(mesh, geom, self.algoType, LIBRARY)
self.params = None
pass
self.mesh.RemoveHypothesis( self.params, self.geom )
self.params = None
if not self.params:
- self.params = self.Hypothesis(hypType, [],"libNETGENEngine.so",UseExisting=0)
+ self.params = self.Hypothesis(hypType, [], LIBRARY, UseExisting=0)
return self.params
for ( int iW = 0; iW < nbWires; ++iW )
{
const UVPtStructVec& points = wires[ iW ]->GetUVPtStruct();
+ if ( points.empty() )
+ return error( COMPERR_BAD_INPUT_MESH );
gp_Pnt pPrev = SMESH_TNodeXYZ( points[0].node );
for ( size_t i = 1; i < points.size(); ++i )
{