HM_ExtAPI::GeomFaceGetGeometry()
Returns surface that defines face geometry.
Syntax
bool GeomFaceGetGeometry(
const HM_EntityGeomFace & face,
HM_EntityGeometrySurface& surf,
double& u_start_par,
double& u_end_par,
double& v_start_par,
double& v_end_par,
bool& normal_sense
);
Type
HyperMesh Ext API
Description
Direction of geometric normal of the surface is defined by the direction of a cross product between U and V parametric derivatives.
If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().
Requires including hm_extapi.h.
Inputs
- face
- [in] - Handle to face object that was returned by previous calls to API function.
- surface
- [out] - Handle to surface object that defines geometry of the face.
- u_start_par
- [out] - Surface parameter that defines start of U range of the parametric region of the surface corresponding to the face.
- u_end_par
- [out] - Surface parameter that defines end of U range of the parametric region of the surface corresponding to the face.
- v_start_par
- [out] - Surface parameter that defines start of V range of the parametric region of the surface corresponding to the face.
- v_end_par
- [out] - Surface parameter that defines end of V range of the parametric region of the surface corresponding to the face.
- normal_sense
- [out] - The flag that indicates orientation of the face normal with respect to geometric normal of the surface. The value of true indicates that the face normal has the same direction as geometric normal of the surface. The value of false indicates that the face normal direction is opposite to the direction of geometric surface normal.
Errors
None.