Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Functions
Mesh through point
Modifying meshes

Functions

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

Detailed Description

Function Documentation

def MoveClosestNodeToPoint (   self,
  x,
  y,
  z,
  NodeID 
)

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

References smesh.ParseParameters().

def FindNodeClosestTo (   self,
  x,
  y,
  z 
)

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
def FindElementsByPoint (   self,
  x,
  y,
  z,
  elementType = SMESH.ALL,
  meshPart = None 
)

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)
meshParta part of mesh (group, sub-mesh) to search within
Returns
list of IDs of found elements
def MeshToPassThroughAPoint (   self,
  x,
  y,
  z 
)

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
Copyright © 2007-2012 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