#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 &) |
|
static |
It is assumed that the edge is 'linear'. The direction vector of the line is returned.
References draftgeoutils.general::vec().
Referenced by getDirectionFromShape().
|
static |
It is assumed that the face is 'planar'. The normal vector of the plane is returned.
|
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.
References getDirection(), isLinear(), and isPlanar().
Referenced by Fem::Constraint::getDirection().
|
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().
|
static |
Checks whether the surface of the face is planar.
References DraftVecUtils::dist().
Referenced by getDirectionFromShape(), FemGui::TaskFemConstraintBearing::onSelectionChanged(), and FemGui::TaskFemConstraintGear::onSelectionChanged().