CFx SDK Documentation
2023 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] Any 3D 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. |
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] The number 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] The number 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::evaluate | ( | const OdGePoint2d & | param, |
int | numDeriv, | ||
OdGeVector3d * | values, | ||
OdGeVector3d * | normal = NULL |
||
) | const |
Returns value and derivatives of the surface at a point specified by parameter.
param | [in] (u,v)-parameters on the surface where evaluation is done. |
numDeriv | [in] Maximum total order of derivative to be computed. |
values | [out] This array receives value and all derivatives. |
normal | [out] If set, this vector receives the unit normal vector. |
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] Any 3D point. |
pntOnSurface | [out] Receives the closest point on surface to specified point. |
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 |
void OdGeSurface::getImplicitEnvelope | ( | OdGeInterval & | implicitIntrvlU, |
OdGeInterval & | implicitIntrvlV | ||
) | const |
Returns the minimum rectangle in parameter space that contains the implicit parameter domain of this surface.
implicitIntrvlU | [out] Receives the implicit u interval. |
implicitIntrvlV | [out] Receives the implicit v interval. |
bool OdGeSurface::getPoles | ( | OdGeDoubleArray * | uParams, |
OdGeDoubleArray * | vParams, | ||
OdGePoint3dArray * | uPoints, | ||
OdGePoint3dArray * | vPoints, | ||
double | tol = 1e-13 |
||
) | const |
bool OdGeSurface::getReparameterization | ( | bool & | swapUV, |
double & | uCoeffA, | ||
double & | vCoeffA, | ||
double & | uCoeffB, | ||
double & | vCoeffB | ||
) | const |
Returns true if and only if this surface has reparameterization, and returns the swap flag value and u- and v-coefficients.
swapUV | [out] Receives the current uv parameter swap flag value. If returns true, uv parameters were swapped; returns false in the other case. |
uCoeffA | [out] Receives the current value of the uCoeffA coefficient. |
vCoeffA | [out] Receives the current value of the vCoeffA coefficient. |
uCoeffB | [out] Receives the current value of the uCoeffB coefficient. |
vCoeffB | [out] Receives the current value of the vCoeffB coefficient. |
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::isNormalReversed | ( | ) | const |
Returns true if and only if the normal of this surface has been reversed an odd number of times.
bool OdGeSurface::isOn | ( | const OdGePoint3d & | point, |
OdGePoint2d & | paramPoint, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
ParamPoint | [out] Receives the 2D pair of parameter values at the point. |
OdGeCurve3d* OdGeSurface::makeIsoparamCurve | ( | bool | byU, |
double | param | ||
) | const |
OdGeCurve3d* OdGeSurface::makeIsoparamCurve | ( | bool | byU, |
double | param, | ||
const OdGeInterval & | interval | ||
) | const |
OdGeSurface& OdGeSurface::operator= | ( | const OdGeSurface & | surf | ) |
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 |
bool OdGeSurface::project | ( | const OdGePoint3d & | p, |
OdGePoint3d & | projP, | ||
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns projP and true, if and only if there is a point on this surface, projP, where a normal to this surface passes through the point p.
p | [in] Any 3D point. |
projP | [out] Receives the point on this surface. |
OdGeSurface& OdGeSurface::reverseNormal | ( | ) |
Reverses the normal of this surface and returns a reference to 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. |
void OdGeSurface::setReparameterization | ( | bool | swapUV = false , |
double | uCoeffA = 1. , |
||
double | vCoeffA = 1. , |
||
double | uCoeffB = 0. , |
||
double | vCoeffB = 0. |
||
) |
Sets a new swap flag value, and u- and v-coefficients to new values.
swapUV | [in] A new value of the swap flag to be set. Default value is false. |
uCoeffA | [in] A new uCoeffA value. Default value is 1.0. |
vCoeffA | [in] A new vCoeffA value. Default value is 1.0. |
uCoeffB | [in] A new uCoeffB value. Default value is 0.0. |
vCoeffB | [in] A new vCoeffB value. Default value is 0.0. |
OdGeSurface::TD_USING | ( | OdGeEntity3d::isOn | ) |