Fem::Tools Class Reference

#include <FemTools.h>

Static Public Member Functions

static gp_XYZ getDirection (const TopoDS_Edge &)
 
static gp_XYZ getDirection (const TopoDS_Face &)
 
static Base::Vector3d getDirectionFromShape (const TopoDS_Shape &)
 
static bool isLinear (const TopoDS_Edge &)
 
static bool isPlanar (const TopoDS_Face &)
 

Member Function Documentation

◆ getDirection() [1/2]

gp_XYZ Fem::Tools::getDirection ( const TopoDS_Edge &  edge)
static

It is assumed that the edge is 'linear'. The direction vector of the line is returned.

See also
isLinear

References draftgeoutils.general::vec().

Referenced by getDirectionFromShape().

◆ getDirection() [2/2]

gp_XYZ Fem::Tools::getDirection ( const TopoDS_Face &  face)
static

It is assumed that the face is 'planar'. The normal vector of the plane is returned.

See also
isPlanar

◆ getDirectionFromShape()

Base::Vector3d Fem::Tools::getDirectionFromShape ( const TopoDS_Shape &  shape)
static

Get the direction of the shape. If the shape is a planar face then get its normal direction. If it's 'linear' then get its direction vector.

See also
isLinear
isPlanar

References getDirection(), isLinear(), and isPlanar().

Referenced by Fem::Constraint::getDirection().

◆ isLinear()

bool Fem::Tools::isLinear ( const TopoDS_Edge &  edge)
static

Checks whether the curve of the edge is 'linear' which is the case for a line or a spline or Bezier curve with collinear control points.

References DraftVecUtils::dist(), and draftgeoutils.general::vec().

Referenced by getDirectionFromShape(), FemGui::TaskFemConstraintBearing::onSelectionChanged(), and FemGui::TaskFemConstraintGear::onSelectionChanged().

◆ isPlanar()

bool Fem::Tools::isPlanar ( const TopoDS_Face &  face)
static

The documentation for this class was generated from the following files: