CFx SDK Documentation
2020SP3
|
#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 47 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::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. |
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::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. |
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. |
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 | ) |