Back to index

salome-smesh  6.5.0
Classes
Projection Algorithms
Defining Algorithms
Collaboration diagram for Projection Algorithms:

Classes

class  StdMeshersDC.StdMeshersDC_Projection1D
 Defines a projection 1D algorithm It is created by calling Mesh.Projection1D(geom=0) More...
class  StdMeshersDC.StdMeshersDC_Projection2D
 Defines a projection 2D algorithm It is created by calling Mesh.Projection2D(geom=0) More...
class  StdMeshersDC.StdMeshersDC_Projection1D2D
 Defines a projection 1D-2D algorithm It is created by calling Mesh.Projection1D2D(geom=0) More...
class  StdMeshersDC.StdMeshersDC_Projection3D
 Defines a projection 3D algorithm It is created by calling Mesh.Projection3D(COMPOSITE) More...

Class Documentation

class StdMeshersDC::StdMeshersDC_Projection1D

Defines a projection 1D algorithm It is created by calling Mesh.Projection1D(geom=0)

Definition at line 547 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Projection1D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Projection1D:

Public Member Functions

def __init__
 Private constructor.
def SourceEdge
 Defines "Source Edge" hypothesis, specifying a meshed edge, from where a mesh pattern is taken, and, optionally, the association of vertices between the source edge and a target edge (to which a hypothesis is assigned)

Static Public Attributes

string meshMethod = "Projection1D"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Projection_1D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Projection1D.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 556 of file StdMeshersDC.py.

00556 
00557     def __init__(self, mesh, geom=0):
00558         Mesh_Algorithm.__init__(self)
00559         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Projection1D.SourceEdge (   self,
  edge,
  mesh = None,
  srcV = None,
  tgtV = None,
  UseExisting = 0 
)

Defines "Source Edge" hypothesis, specifying a meshed edge, from where a mesh pattern is taken, and, optionally, the association of vertices between the source edge and a target edge (to which a hypothesis is assigned)

Parameters:
edgefrom which nodes distribution is taken
meshfrom which nodes distribution is taken (optional)
srcVa vertex of edge to associate with tgtV (optional)
tgtVa vertex of the edge to which the algorithm is assigned, to associate with srcV (optional)
UseExistingif ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Definition at line 570 of file StdMeshersDC.py.

00570 
00571     def SourceEdge(self, edge, mesh=None, srcV=None, tgtV=None, UseExisting=0):
00572         AssureGeomPublished( self.mesh, edge )
00573         AssureGeomPublished( self.mesh, srcV )
00574         AssureGeomPublished( self.mesh, tgtV )
00575         hyp = self.Hypothesis("ProjectionSource1D", [edge,mesh,srcV,tgtV],
00576                               UseExisting=0)
00577         # it does not seem to be useful to reuse the existing "SourceEdge" hypothesis
00578                               #UseExisting=UseExisting, CompareMethod=self.CompareSourceEdge)
00579         hyp.SetSourceEdge( edge )
00580         if not mesh is None and isinstance(mesh, Mesh):
00581             mesh = mesh.GetMesh()
00582         hyp.SetSourceMesh( mesh )
00583         hyp.SetVertexAssociation( srcV, tgtV )
00584         return hyp
00585 
00586 
00587 # Public class: Mesh_Projection2D
00588 # ------------------------------

Here is the call graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_Projection1D.algoType = "Projection_1D" [static]

Name of algorithm type.

Definition at line 552 of file StdMeshersDC.py.

Definition at line 553 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Projection1D.meshMethod = "Projection1D" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 550 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Projection2D

Defines a projection 2D algorithm It is created by calling Mesh.Projection2D(geom=0)

Definition at line 593 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Projection2D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Projection2D:

Public Member Functions

def __init__
 Private constructor.
def SourceFace
 Defines "Source Face" hypothesis, specifying a meshed face, from where a mesh pattern is taken, and, optionally, the association of vertices between the source face and the target face (to which a hypothesis is assigned)

Static Public Attributes

string meshMethod = "Projection2D"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Projection_2D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Projection2D.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Reimplemented in StdMeshersDC.StdMeshersDC_Projection1D2D.

Definition at line 602 of file StdMeshersDC.py.

00602 
00603     def __init__(self, mesh, geom=0):
00604         Mesh_Algorithm.__init__(self)
00605         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Projection2D.SourceFace (   self,
  face,
  mesh = None,
  srcV1 = None,
  tgtV1 = None,
  srcV2 = None,
  tgtV2 = None,
  UseExisting = 0 
)

Defines "Source Face" hypothesis, specifying a meshed face, from where a mesh pattern is taken, and, optionally, the association of vertices between the source face and the target face (to which a hypothesis is assigned)

Parameters:
facefrom which the mesh pattern is taken
meshfrom which the mesh pattern is taken (optional)
srcV1a vertex of face to associate with tgtV1 (optional)
tgtV1a vertex of the face to which the algorithm is assigned, to associate with srcV1 (optional)
srcV2a vertex of face to associate with tgtV1 (optional)
tgtV2a vertex of the face to which the algorithm is assigned, to associate with srcV2 (optional)
UseExistingif ==true - forces the search for the existing hypothesis created with the same parameters, else (default) - forces the creation a new one

Note: all association vertices must belong to one edge of a face

Definition at line 622 of file StdMeshersDC.py.

00622 
00623                    srcV2=None, tgtV2=None, UseExisting=0):
00624         from smeshDC import Mesh
00625         if isinstance(mesh, Mesh):
00626             mesh = mesh.GetMesh()
00627         for geom in [ face, srcV1, tgtV1, srcV2, tgtV2 ]:
00628             AssureGeomPublished( self.mesh, geom )
00629         hyp = self.Hypothesis("ProjectionSource2D", [face,mesh,srcV1,tgtV1,srcV2,tgtV2],
00630                               UseExisting=0)
00631         # it does not seem to be useful to reuse the existing "SourceFace" hypothesis
00632                               #UseExisting=UseExisting, CompareMethod=self.CompareSourceFace)
00633         hyp.SetSourceFace( face )
00634         hyp.SetSourceMesh( mesh )
00635         hyp.SetVertexAssociation( srcV1, srcV2, tgtV1, tgtV2 )
00636         return hyp
00637 
00638 # Public class: Mesh_Projection1D2D
00639 # ---------------------------------

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_Projection2D.algoType = "Projection_2D" [static]

Name of algorithm type.

Reimplemented in StdMeshersDC.StdMeshersDC_Projection1D2D.

Definition at line 598 of file StdMeshersDC.py.

Definition at line 599 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Projection2D.meshMethod = "Projection2D" [static]

Name of method of class Mesh creating an instance of this class.

Reimplemented in StdMeshersDC.StdMeshersDC_Projection1D2D.

Definition at line 596 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Projection1D2D

Defines a projection 1D-2D algorithm It is created by calling Mesh.Projection1D2D(geom=0)

Definition at line 645 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Projection1D2D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Projection1D2D:

Public Member Functions

def __init__
 Private constructor.
def SourceFace
 Defines "Source Face" hypothesis, specifying a meshed face, from where a mesh pattern is taken, and, optionally, the association of vertices between the source face and the target face (to which a hypothesis is assigned)

Static Public Attributes

string meshMethod = "Projection1D2D"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Projection_1D2D"
 Name of algorithm type.
 isDefault = True

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Projection1D2D.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Reimplemented from StdMeshersDC.StdMeshersDC_Projection2D.

Definition at line 653 of file StdMeshersDC.py.

00653 
00654     def __init__(self, mesh, geom=0):
00655         StdMeshersDC_Projection2D.__init__(self, mesh, geom)
00656 
00657 # Public class: Mesh_Projection3D
00658 # ------------------------------


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Projection2D.SourceFace (   self,
  face,
  mesh = None,
  srcV1 = None,
  tgtV1 = None,
  srcV2 = None,
  tgtV2 = None,
  UseExisting = 0 
) [inherited]

Defines "Source Face" hypothesis, specifying a meshed face, from where a mesh pattern is taken, and, optionally, the association of vertices between the source face and the target face (to which a hypothesis is assigned)

Parameters:
facefrom which the mesh pattern is taken
meshfrom which the mesh pattern is taken (optional)
srcV1a vertex of face to associate with tgtV1 (optional)
tgtV1a vertex of the face to which the algorithm is assigned, to associate with srcV1 (optional)
srcV2a vertex of face to associate with tgtV1 (optional)
tgtV2a vertex of the face to which the algorithm is assigned, to associate with srcV2 (optional)
UseExistingif ==true - forces the search for the existing hypothesis created with the same parameters, else (default) - forces the creation a new one

Note: all association vertices must belong to one edge of a face

Definition at line 622 of file StdMeshersDC.py.

00622 
00623                    srcV2=None, tgtV2=None, UseExisting=0):
00624         from smeshDC import Mesh
00625         if isinstance(mesh, Mesh):
00626             mesh = mesh.GetMesh()
00627         for geom in [ face, srcV1, tgtV1, srcV2, tgtV2 ]:
00628             AssureGeomPublished( self.mesh, geom )
00629         hyp = self.Hypothesis("ProjectionSource2D", [face,mesh,srcV1,tgtV1,srcV2,tgtV2],
00630                               UseExisting=0)
00631         # it does not seem to be useful to reuse the existing "SourceFace" hypothesis
00632                               #UseExisting=UseExisting, CompareMethod=self.CompareSourceFace)
00633         hyp.SetSourceFace( face )
00634         hyp.SetSourceMesh( mesh )
00635         hyp.SetVertexAssociation( srcV1, srcV2, tgtV1, tgtV2 )
00636         return hyp
00637 
00638 # Public class: Mesh_Projection1D2D
00639 # ---------------------------------

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_Projection1D2D.algoType = "Projection_1D2D" [static]

Name of algorithm type.

Reimplemented from StdMeshersDC.StdMeshersDC_Projection2D.

Definition at line 650 of file StdMeshersDC.py.

Definition at line 599 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Projection1D2D.meshMethod = "Projection1D2D" [static]

Name of method of class Mesh creating an instance of this class.

Reimplemented from StdMeshersDC.StdMeshersDC_Projection2D.

Definition at line 648 of file StdMeshersDC.py.

class StdMeshersDC::StdMeshersDC_Projection3D

Defines a projection 3D algorithm It is created by calling Mesh.Projection3D(COMPOSITE)

Definition at line 664 of file StdMeshersDC.py.

Inheritance diagram for StdMeshersDC.StdMeshersDC_Projection3D:
Collaboration diagram for StdMeshersDC.StdMeshersDC_Projection3D:

Public Member Functions

def __init__
 Private constructor.
def SourceShape3D
 Defines the "Source Shape 3D" hypothesis, specifying a meshed solid, from where the mesh pattern is taken, and, optionally, the association of vertices between the source and the target solid (to which a hipothesis is assigned)

Static Public Attributes

string meshMethod = "Projection3D"
 Name of method of class Mesh creating an instance of this class.
string algoType = "Projection_3D"
 Name of algorithm type.

Constructor & Destructor Documentation

def StdMeshersDC.StdMeshersDC_Projection3D.__init__ (   self,
  mesh,
  geom = 0 
)

Private constructor.

Definition at line 672 of file StdMeshersDC.py.

00672 
00673     def __init__(self, mesh, geom=0):
00674         Mesh_Algorithm.__init__(self)
00675         self.Create(mesh, geom, self.algoType)

Here is the call graph for this function:


Member Function Documentation

def StdMeshersDC.StdMeshersDC_Projection3D.SourceShape3D (   self,
  solid,
  mesh = 0,
  srcV1 = 0,
  tgtV1 = 0,
  srcV2 = 0,
  tgtV2 = 0,
  UseExisting = 0 
)

Defines the "Source Shape 3D" hypothesis, specifying a meshed solid, from where the mesh pattern is taken, and, optionally, the association of vertices between the source and the target solid (to which a hipothesis is assigned)

Parameters:
solidfrom where the mesh pattern is taken
meshfrom where the mesh pattern is taken (optional)
srcV1a vertex of solid to associate with tgtV1 (optional)
tgtV1a vertex of the solid where the algorithm is assigned, to associate with srcV1 (optional)
srcV2a vertex of solid to associate with tgtV1 (optional)
tgtV2a vertex of the solid to which the algorithm is assigned, to associate with srcV2 (optional)
UseExisting- if ==true - searches for the existing hypothesis created with the same parameters, else (default) - creates a new one

Note: association vertices must belong to one edge of a solid

Definition at line 692 of file StdMeshersDC.py.

00692 
00693                       srcV2=0, tgtV2=0, UseExisting=0):
00694         for geom in [ solid, srcV1, tgtV1, srcV2, tgtV2 ]:
00695             AssureGeomPublished( self.mesh, geom )
00696         hyp = self.Hypothesis("ProjectionSource3D",
00697                               [solid,mesh,srcV1,tgtV1,srcV2,tgtV2],
00698                               UseExisting=0)
00699         # seems to be not really useful to reuse existing "SourceShape3D" hypothesis
00700                               #UseExisting=UseExisting, CompareMethod=self.CompareSourceShape3D)
00701         hyp.SetSource3DShape( solid )
00702         if isinstance(mesh, Mesh):
00703             mesh = mesh.GetMesh()
00704         if mesh:
00705             hyp.SetSourceMesh( mesh )
00706         if srcV1 and srcV2 and tgtV1 and tgtV2:
00707             hyp.SetVertexAssociation( srcV1, srcV2, tgtV1, tgtV2 )
00708         #elif srcV1 or srcV2 or tgtV1 or tgtV2:
00709         return hyp
00710 
00711 # Public class: Mesh_Prism
00712 # ------------------------

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

string StdMeshersDC.StdMeshersDC_Projection3D.algoType = "Projection_3D" [static]

Name of algorithm type.

Definition at line 669 of file StdMeshersDC.py.

string StdMeshersDC.StdMeshersDC_Projection3D.meshMethod = "Projection3D" [static]

Name of method of class Mesh creating an instance of this class.

Definition at line 667 of file StdMeshersDC.py.