CFx SDK Documentation  2022 SP0
Public Member Functions | Protected Member Functions | List of all members
OdGePlanarEnt Class Reference

#include <GePlanarEnt.h>

Inheritance diagram for OdGePlanarEnt:
OdGeSurface OdGeEntity3d OdGeBoundedPlane OdGePlane

Public Member Functions

bool intersectWith (const OdGeLinearEnt3d &line, OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointToLinearEnt (const OdGeLinearEnt3d &line, OdGePoint3d &pointOnLine, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointToPlanarEnt (const OdGePlanarEnt &plane, OdGePoint3d &pointOnOtherPlane, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isParallelTo (const OdGeLinearEnt3d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isParallelTo (const OdGePlanarEnt &plane, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPerpendicularTo (const OdGeLinearEnt3d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPerpendicularTo (const OdGePlanarEnt &plane, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isCoplanarTo (const OdGePlanarEnt &plane, const OdGeTol &tol=OdGeContext::gTol) const
 
void get (OdGePoint3d &origin, OdGeVector3d &uAxis, OdGeVector3d &vAxis) const
 
void get (OdGePoint3d &uPnt, OdGePoint3d &origin, OdGePoint3d &vPnt) const
 
OdGePoint3d pointOnPlane () const
 
OdGeVector3d normal () const
 
void getCoefficients (double &a, double &b, double &c, double &d) const
 
void getCoordSystem (OdGePoint3d &origin, OdGeVector3d &axis1, OdGeVector3d &axis2) const
 
OdGePlanarEntoperator= (const OdGePlanarEnt &plane)
 
 TD_USING (OdGeSurface::project)
 
bool project (const OdGePoint3d &p, const OdGeVector3d &unitDir, OdGePoint3d &projP, const OdGeTol &tol=OdGeContext::gTol) const
 
- Public Member Functions inherited from OdGeSurface
OdGePoint2d paramOf (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
 TD_USING (OdGeEntity3d::isOn)
 
bool isOn (const OdGePoint3d &point, OdGePoint2d &paramPoint, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointTo (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
void getClosestPointTo (const OdGePoint3d &point, OdGePointOnSurface &pntOnSurface, const OdGeTol &tol=OdGeContext::gTol) const
 
double distanceTo (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isNormalReversed () const
 
OdGeSurfacereverseNormal ()
 
void getEnvelope (OdGeInterval &intrvlU, OdGeInterval &intrvlV) const
 
bool isClosedInU (const OdGeTol &tol=OdGeContext::gTol) const
 
bool isClosedInV (const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d evalPoint (const OdGePoint2d &param) const
 
OdGePoint3d evalPoint (const OdGePoint2d &param, int numDeriv, OdGeVector3dArray &derivatives) const
 
OdGePoint3d evalPoint (const OdGePoint2d &param, int numDeriv, OdGeVector3dArray &derivatives, OdGeVector3d &normal) const
 
OdGeSurfaceoperator= (const OdGeSurface &surf)
 
bool project (const OdGePoint3d &p, OdGePoint3d &projP, const OdGeTol &tol=OdGeContext::gTol) const
 
bool getReparameterization (bool &swapUV, double &uCoeffA, double &vCoeffA, double &uCoeffB, double &vCoeffB) const
 
void setReparameterization (bool swapUV=false, double uCoeffA=1., double vCoeffA=1., double uCoeffB=0., double vCoeffB=0.)
 
void getImplicitEnvelope (OdGeInterval &implicitIntrvlU, OdGeInterval &implicitIntrvlV) const
 
bool setEnvelope (const OdGeInterval &realIntrvlU, const OdGeInterval &realIntrvlV)
 
- Public Member Functions inherited from OdGeEntity3d
 ODRX_HEAP_OPERATORS ()
 
 ~OdGeEntity3d ()
 
bool isKindOf (OdGe::EntityId entType) const
 
OdGe::EntityId type () const
 
OdGeEntity3dcopy () const
 
OdGeEntity3doperator= (const OdGeEntity3d &entity)
 
bool operator== (const OdGeEntity3d &entity) const
 
bool operator!= (const OdGeEntity3d &entity) const
 
bool isEqualTo (const OdGeEntity3d &object, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity3dtransformBy (const OdGeMatrix3d &xfm)
 
OdGeEntity3dtranslateBy (const OdGeVector3d &translateVec)
 
OdGeEntity3drotateBy (double angle, const OdGeVector3d &vect, const OdGePoint3d &basePoint=OdGePoint3d::kOrigin)
 
OdGeEntity3dmirror (const OdGePlane &plane)
 
OdGeEntity3dscaleBy (double scaleFactor, const OdGePoint3d &basePoint=OdGePoint3d::kOrigin)
 
bool isOn (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 

Protected Member Functions

 OdGePlanarEnt ()
 
 OdGePlanarEnt (const OdGePlanarEnt &plane)
 
- Protected Member Functions inherited from OdGeSurface
 OdGeSurface ()
 
 OdGeSurface (const OdGeSurface &surf)
 
- Protected Member Functions inherited from OdGeEntity3d
 OdGeEntity3d ()
 
 OdGeEntity3d (const OdGeEntity3d &)
 
void connectTo (OdGeEntity3dImpl *)
 

Detailed Description

This class is the base class for all OdGe planes in 3D space.

Remarks
A parametric point on the plane with parameters u and v maps to the point S(u,v) as follows
      S(u,v) = originOfPlanarEntity + (u * uAxis) + (v * vAxis)
uAxis and vAxis need not be either normalized or perpendicular, but they must not be colinear.

Description Computed as origin Origin of plane. origin
axis1 A unit vector in the plane. uAxis.normal()
axis2 A unit vector perpendicular to the plane. uAxis.crossProduct(vAxis).normal()

The plane equation for a plane is as follows

      a * X + b * Y + c * Z + d = 0

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 61 of file GePlanarEnt.h.

Constructor & Destructor Documentation

◆ OdGePlanarEnt() [1/2]

OdGePlanarEnt::OdGePlanarEnt ( )
protected

◆ OdGePlanarEnt() [2/2]

OdGePlanarEnt::OdGePlanarEnt ( const OdGePlanarEnt plane)
protected

Member Function Documentation

◆ closestPointToLinearEnt()

OdGePoint3d OdGePlanarEnt::closestPointToLinearEnt ( const OdGeLinearEnt3d line,
OdGePoint3d pointOnLine,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns the point on this plane that is closest to the specified linear entity, and the point on the linear entity that is closest to this plane.

Parameters
line[in] Any 3D linear entity.
pointOnLine[out] Receives the closest point on the linear entity.
tol[in] Geometric tolerance.

◆ closestPointToPlanarEnt()

OdGePoint3d OdGePlanarEnt::closestPointToPlanarEnt ( const OdGePlanarEnt plane,
OdGePoint3d pointOnOtherPlane,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns the point on this plane that is closest to the specified plane, and the point on the specified plane that is closest to this plane.

Parameters
plane[in] Any plane.
pointOnOtherPlane[out] Receives the closest point on the plane.
tol[in] Geometric tolerance.

◆ get() [1/2]

void OdGePlanarEnt::get ( OdGePoint3d origin,
OdGeVector3d uAxis,
OdGeVector3d vAxis 
) const

Returns the parameters of this plane.

Parameters
origin[in] The origin of this plane.
uAxis[in] The U-axis.
vAxis[in] The V-axis.
Remarks
The U-axis and V-axis cannot be colinear, and are defined as follows
    uAxis=uPnt-origin
    vAxis=vPnt-origin

◆ get() [2/2]

void OdGePlanarEnt::get ( OdGePoint3d uPnt,
OdGePoint3d origin,
OdGePoint3d vPnt 
) const

Returns the parameters of this plane.

Parameters
origin[in] The origin of this plane.
uPnt[in] A point at the end of the U-axis.
vPnt[in] A point at the end of the V-axis.
Remarks
The U-axis and V-axis cannot be colinear, and are defined as follows
    uAxis=uPnt-origin
    vAxis=vPnt-origin

◆ getCoefficients()

void OdGePlanarEnt::getCoefficients ( double &  a,
double &  b,
double &  c,
double &  d 
) const

Returns the coefficients of the plane equation for this plane.

Parameters
a[out] Receives the coefficient a.
b[out] Receives the coefficient b.
c[out] Receives the coefficient c.
d[out] Receives the coefficient d.
Remarks
The plane equation for this plane is as follows
    a * x + b * y + c * z + d = 0

◆ getCoordSystem()

void OdGePlanarEnt::getCoordSystem ( OdGePoint3d origin,
OdGeVector3d axis1,
OdGeVector3d axis2 
) const

Returns the orthonormal canonical coordinate system of this plane.

Parameters
origin[out] Receives the origin of this plane
axis1[out] Receives a unit vector in the plane.
axis2[out] Receives a unit vector perpendicular to the plane.
Remarks
The orthonormal canonical coordinate system associated with a plane defined follows

Description Computed as origin Origin of plane. origin
axis1 A unit vector in the plane. uAxis.normal()
axis2 A unit vector in the plane perpendicular to axis1. normal.crossProduct(axis1)

◆ intersectWith()

bool OdGePlanarEnt::intersectWith ( const OdGeLinearEnt3d line,
OdGePoint3d point,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true and the intersection with the specified linear entity, if and only if the specified linear entity intersects with this plane.

Parameters
line[in] Any 3D linear entity.
point[out] Receives the point of intersection.
tol[in] Geometric tolerance.

◆ isCoplanarTo()

bool OdGePlanarEnt::isCoplanarTo ( const OdGePlanarEnt plane,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only the specified plane is colinear with this one.

Parameters
plane[in] Any plane.
tol[in] Geometric tolerance.

◆ isParallelTo() [1/2]

bool OdGePlanarEnt::isParallelTo ( const OdGeLinearEnt3d line,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified entity is parallel to this one.

Parameters
line[in] Any 3D linear entity.
tol[in] Geometric tolerance.

◆ isParallelTo() [2/2]

bool OdGePlanarEnt::isParallelTo ( const OdGePlanarEnt plane,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified entity is parallel to this one.

Parameters
plane[in] Any plane.
tol[in] Geometric tolerance.

◆ isPerpendicularTo() [1/2]

bool OdGePlanarEnt::isPerpendicularTo ( const OdGeLinearEnt3d line,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified entity is perpendicular to this one.

Parameters
line[in] Any 3D linear entity.
tol[in] Geometric tolerance.

◆ isPerpendicularTo() [2/2]

bool OdGePlanarEnt::isPerpendicularTo ( const OdGePlanarEnt plane,
const OdGeTol tol = OdGeContext::gTol 
) const

Returns true if and only if the specified entity is perpendicular to this one.

Parameters
plane[in] Any plane.
tol[in] Geometric tolerance.

◆ normal()

OdGeVector3d OdGePlanarEnt::normal ( ) const

Returns the normal to the plane as a unit vector.

◆ operator=()

OdGePlanarEnt& OdGePlanarEnt::operator= ( const OdGePlanarEnt plane)

◆ pointOnPlane()

OdGePoint3d OdGePlanarEnt::pointOnPlane ( ) const

Returns an arbitrary point on the plane.

◆ project()

bool OdGePlanarEnt::project ( const OdGePoint3d p,
const OdGeVector3d unitDir,
OdGePoint3d projP,
const OdGeTol tol = OdGeContext::gTol 
) const

◆ TD_USING()

OdGePlanarEnt::TD_USING ( OdGeSurface::project  )

Returns projP and true, if and only if there is a point on this surface, projP, where the this surface normal or unitDir (if specified) passes through the point p.

Parameters
p[in] Any 3D point.
projP[out] Receives the point on the plane.
unitDir[in] Unit vector specifying the projection direction.
tol[in] Geometric tolerance.

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