Version: 6.3.1
Public Member Functions | Data Fields | Private Member Functions | Private Attributes

GEOM_PY.structelem.orientation.Orientation2D Class Reference

Public Member Functions

def __init__
def __repr__
def buildMarker

Data Fields

 geom

Private Member Functions

def _buildDefaultMarker
def _buildMarkerRefVecX

Private Attributes

 _alpha
 _beta
 _vect

Detailed Description

This class is used to compute the orientation of 2D elements and to build
the corresponding markers. Angles `alpha` and `beta` are used to determine
the local coordinate system for the 2D element. If `vect` is not
:const:`None`, it is used instead of `alpha` and `beta`.

Constructor & Destructor Documentation

def GEOM_PY.structelem.orientation.Orientation2D.__init__ (   self,
  alpha,
  beta,
  vect 
)

Member Function Documentation

def GEOM_PY.structelem.orientation.Orientation2D.__repr__ (   self)
def GEOM_PY.structelem.orientation.Orientation2D._buildDefaultMarker (   self,
  center,
  normal,
  warnings = True 
) [private]
Create the default marker, that use the normal vector of the 2D object
as the local Z axis and the global X axis to determine the local X
axis. `warnings` can be used to enable or disable the logging of
warning messages.
def GEOM_PY.structelem.orientation.Orientation2D._buildMarkerRefVecX (   self,
  center,
  normal,
  refVecX 
) [private]
Create a marker using `normal` as Z axis and `refVecX` to determine
the X axis.
def GEOM_PY.structelem.orientation.Orientation2D.buildMarker (   self,
  geom,
  center,
  normal,
  warnings = True 
)
Create a marker with origin `center` and `normal` as Z axis. The other
axes are computed using the parameters alpha and beta of the
Orientation2D instance. `geom` is the pseudo-geompy object used to
build the geometric shapes. `warnings` can be used to enable or
disable the logging of warning messages.

Field Documentation

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