CFx SDK Documentation 2024 SP0
|
#include <GeSurface.h>
Protected Member Functions | |
OdGeSurface () | |
OdGeSurface (const OdGeSurface &surf) | |
Protected Member Functions inherited from OdGeEntity3d | |
OdGeEntity3d () | |
OdGeEntity3d (const OdGeEntity3d &) | |
void | connectTo (OdGeEntity3dImpl *) |
This class is the base class for all OdGe parametric surfaces.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 50 of file GeSurface.h.
|
protected |
|
protected |
OdGePoint3d OdGeSurface::closestPointTo | ( | const OdGePoint3d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the point on this surface closest to the specified point.
point | [in] Input 3D point to which the closest point on this surface is calculated. |
tol | [in] Geometric tolerance. |
OdGePoint3d OdGeSurface::closestPointTo | ( | const OdGePoint3d & | point, |
OdGePoint2d * | param, | ||
const OdGeUvBox * | uvBox, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the point on this surface closest to the specified point.
point | [in] Any 3D point. |
param | [out] uv-coord of closest point. |
uvBox | [in] uv-box of closest point. |
tol | [in] Geometric tolerance. |
double OdGeSurface::distanceTo | ( | const OdGePoint3d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the distance to the point on this curve closest to the specified point.
point | [in] Any 3D point distance to which is measured. |
tol | [in] Geometric tolerance. |
OdGePoint3d OdGeSurface::evalPoint | ( | const OdGePoint2d & | param | ) | const |
Returns the point corresponding to the parameter pair, as well as the derivatives and the normal at that point.
param | [in] The parameter pair to be evaluated. |
OdGePoint3d OdGeSurface::evalPoint | ( | const OdGePoint2d & | param, |
int | numDeriv, | ||
OdGeVector3dArray & | derivatives | ||
) | const |
Returns the point corresponding to the parameter pair, as well as the derivatives and the normal at that point.
param | [in] The parameter pair to be evaluated. |
numDeriv | [in] Maximum order of derivatives to be computed. |
derivatives | [out] Receives an array of derivatives at the point corresponding to param. |
OdGePoint3d OdGeSurface::evalPoint | ( | const OdGePoint2d & | param, |
int | numDeriv, | ||
OdGeVector3dArray & | derivatives, | ||
OdGeVector3d & | normal | ||
) | const |
Returns the point corresponding to the parameter pair, as well as the derivatives and the normal at that point.
param | [in] The parameter pair to be evaluated. |
numDeriv | [in] Maximum order of derivatives to be computed. |
derivatives | [out] Receives an array of derivatives at the point corresponding to param. |
normal | [out] Receives the normal at the point corresponding to param. |
void OdGeSurface::getClosestPointTo | ( | const OdGePoint3d & | point, |
OdGePointOnSurface & | pntOnSurface, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the point on this surface closest to the specified point.
point | [in] Input 3D point to which the closest point on this surface is calculated. |
pntOnSurface | [out] Receives the closest point on the surface. |
tol | [in] Geometric tolerance. |
void OdGeSurface::getEnvelope | ( | OdGeInterval & | intrvlU, |
OdGeInterval & | intrvlV | ||
) | const |
Returns the minimum rectangle in parameter space that contains the parameter domain of this surface.
intrvlU | [out] Receives the u interval. |
intrvlV | [out] Receives the v interval. |
Returns the minimum rectangle in parameter space that contains the parameter domain of this surface.
uvbox | [out] Receives the uv-box |
OdGeExtents3d OdGeSurface::getGeomExtents | ( | const OdGeUvBox & | range = OdGeUvBox() , |
const OdGeMatrix3d * | coordSystem = NULL |
||
) | const |
Returns bounding box of the whole surface or a part of it. The box is axis-aligned in the specified local coordinate system. It is guaranteed to enclose the surface, but not guaranteed to be tight/minimal.
range | [in] The part of the surface to be bounded. |
coordSystem | [in] The local coordinate system in which box extents are computed. |
bool OdGeSurface::getPoles | ( | OdGeDoubleArray * | uParams, |
OdGeDoubleArray * | vParams, | ||
OdGePoint3dArray * | uPoints, | ||
OdGePoint3dArray * | vPoints, | ||
double | tol = 1e-13 |
||
) | const |
Finds all poles of surface. Surface envelope not considered. In case of NurbSurface extreme points of envelope are checked. Input arrays may be not empty. In this case new poles will be written to the ends of the arrays.
uParams | [out] (Optional) Pointer to an array that receives U-params for poles with U = const. |
vParams | [out] (Optional) Pointer to an array that receives V-params for poles with V = const. |
uPoints | [out] (Optional) Pointer to an array that receives 3D points for poles with U = const. |
vPoints | [out] (Optional) Pointer to an array that receives 3D points for poles with V = const. |
tol | [in] Geometric tolerance. |
bool OdGeSurface::isClosedInU | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if this surface is closed in the U direction.
tol | [in] Geometric tolerance. |
bool OdGeSurface::isClosedInV | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if this surface is closed in the V direction.
tol | [in] Geometric tolerance. |
bool OdGeSurface::isLeftHanded | ( | ) | const |
Checks orientation of the surface.
bool OdGeSurface::isNormalReversed | ( | ) | const |
Checks normal direction.
bool OdGeSurface::isOn | ( | const OdGePoint3d & | point, |
OdGePoint2d & | paramPoint, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Determines if the passed point is on this surface and retrieves a 2D point that represents parametric values for the passed 3D point if it is on this surface.
point | [in] Point that is checked to be on this surface. |
paramPoint | [out] Receives the 2D pair of parameter values at the point if the input point lies on the surface. |
tol | [in] Geometric tolerance. |
OdGeCurve3d * OdGeSurface::makeIsoparamCurve | ( | bool | byU, |
double | param | ||
) | const |
Returns isoparametric curve for surface.
byU | [in] true means: U = const, V - varying. |
param | [in] Value of the const parameter. |
OdGeCurve3d * OdGeSurface::makeIsoparamCurve | ( | bool | byU, |
double | param, | ||
const OdGeInterval & | interval | ||
) | const |
Returns isoparametric curve for surface.
byU | [in] true means: U = const, V - varying. |
param | [in] Value of the const parameter. |
interval | [in] Interval of the desired curve (by varying parameter). |
OdGeSurface & OdGeSurface::operator= | ( | const OdGeSurface & | surf | ) |
Assignment operator for the OdGeSurface class.
surf | [in] Surface to assign. |
OdGePoint2d OdGeSurface::paramOf | ( | const OdGePoint3d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the 2D pair of parameter values of a point on this surface.
point | [in] Point to be evaluated. |
tol | [in] Geometric tolerance. |
OdGePoint2d OdGeSurface::paramOf | ( | const OdGePoint3d & | point, |
const OdGeUvBox * | uvBox, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns the 2D pair of parameter values of a point on this surface.
point | [in] Point to be evaluated. |
uvBox | [in] uv-box of closest point. |
tol | [in] Geometric tolerance. |
bool OdGeSurface::project | ( | const OdGePoint3d & | p, |
OdGePoint3d & | projP, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Projects a point onto this surface.
p | [in] Any 3D point. |
projP | [out] Receives the point on this surface. |
tol | [in] Geometric tolerance. |
OdGeSurface & OdGeSurface::reverseNormal | ( | ) |
Reverses the normal of this surface.
bool OdGeSurface::setEnvelope | ( | const OdGeInterval & | realIntrvlU, |
const OdGeInterval & | realIntrvlV | ||
) |
Set the rectangle in parameter space that defines the parameter domain of this surface.
realIntrvlU | [in] A reference to a new real u interval to be set. |
realIntrvlV | [in] A reference to a new real v interval to be set. |
OdGeSurface::TD_USING | ( | OdGeEntity3d::isOn | ) |