Version: 6.3.1
Functions

Mesh through point

Modifying meshes
Collaboration diagram for Mesh through point:

Functions

def smeshDC::Mesh.MoveClosestNodeToPoint
 Finds the node closest to a point and moves it to a point location.
def smeshDC::Mesh.FindNodeClosestTo
 Finds the node closest to a point.
def smeshDC::Mesh.FindElementsByPoint
 Finds the elements where a point lays IN or ON.
def smeshDC::Mesh.MeshToPassThroughAPoint
 Finds the node closest to a point and moves it to a point location.

Function Documentation

def smeshDC.Mesh.FindElementsByPoint (   self,
  x,
  y,
  z,
  elementType = SMESH.ALL 
) [inherited]

Finds the elements where a point lays IN or ON.

Parameters:
xthe X coordinate of a point
ythe Y coordinate of a point
zthe Z coordinate of a point
elementTypetype of elements to find (SMESH.ALL type means elements of any type excluding nodes and 0D elements)
Returns:
list of IDs of found elements

Definition at line 2701 of file smeshDC.py.

02702                                                                    :
02703         return self.editor.FindElementsByPoint(x, y, z, elementType)

def smeshDC.Mesh.FindNodeClosestTo (   self,
  x,
  y,
  z 
) [inherited]

Finds the node closest to a point.

Parameters:
xthe X coordinate of a point
ythe Y coordinate of a point
zthe Z coordinate of a point
Returns:
the ID of a node

Definition at line 2688 of file smeshDC.py.

02689                                         :
02690         #preview = self.mesh.GetMeshEditPreviewer()
02691         #return preview.MoveClosestNodeToPoint(x, y, z, -1)
02692         return self.editor.FindNodeClosestTo(x, y, z)

def smeshDC.Mesh.MeshToPassThroughAPoint (   self,
  x,
  y,
  z 
) [inherited]

Finds the node closest to a point and moves it to a point location.

Parameters:
xthe X coordinate of a point
ythe Y coordinate of a point
zthe Z coordinate of a point
Returns:
the ID of a moved node

Definition at line 2716 of file smeshDC.py.

02717                                               :
02718         return self.editor.MoveClosestNodeToPoint(x, y, z, -1)

def smeshDC.Mesh.MoveClosestNodeToPoint (   self,
  x,
  y,
  z,
  NodeID 
) [inherited]

Finds the node closest to a point and moves it to a point location.

Parameters:
xthe X coordinate of a point
ythe Y coordinate of a point
zthe Z coordinate of a point
NodeIDif specified (>0), the node with this ID is moved, otherwise, the node closest to point (x,y,z) is moved
Returns:
the ID of a node

Definition at line 2677 of file smeshDC.py.

02678                                                      :
02679         x,y,z,Parameters = geompyDC.ParseParameters(x,y,z)
02680         self.mesh.SetParameters(Parameters)
02681         return self.editor.MoveClosestNodeToPoint(x, y, z, NodeID)

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS