Version: 9.16.0
Home
Loading...
Searching...
No Matches

This class is used to compute the orientation of 2D elements and to build the corresponding markers. More...

Public Member Functions

 __init__ (self, alpha, beta, vect)
 
 __repr__ (self)
 
 buildMarker (self, geom, center, normal, warnings=True)
 Create a marker with origin center and normal as Z axis.
 

Data Fields

 geom
 

Protected Member Functions

 _buildDefaultMarker (self, center, normal, warnings=True)
 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.
 
 _buildMarkerRefVecX (self, center, normal, refVecX)
 Create a marker using normal as Z axis and refVecX to determine the X axis.
 

Protected 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 None, it is used instead of alpha and beta.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  alpha,
  beta,
  vect 
)

Member Function Documentation

◆ __repr__()

__repr__ (   self)

◆ _buildDefaultMarker()

_buildDefaultMarker (   self,
  center,
  normal,
  warnings = True 
)
protected

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.

References Orientation2D._buildMarkerRefVecX(), Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ _buildMarkerRefVecX()

_buildMarkerRefVecX (   self,
  center,
  normal,
  refVecX 
)
protected

Create a marker using normal as Z axis and refVecX to determine the X axis.

References Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

◆ buildMarker()

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.

References Orientation2D._alpha, Orientation2D._beta, Orientation2D._buildDefaultMarker(), Orientation2D._buildMarkerRefVecX(), Orientation2D._vect, Orientation1D.geom, Orientation2D.geom, and StructuralElementPart.geom.

Field Documentation

◆ geom

geom

◆ _alpha

_alpha
protected

◆ _beta

_beta
protected

◆ _vect

_vect
protected