3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenSubdiv::v3_4_3::Far::PatchMap Class Reference

An quadtree-based map connecting coarse faces to their sub-patches. More...

#include <patchMap.h>

Public Member Functions

 PatchMap (PatchTable const &patchTable)
 Constructor. More...
 
Handle const * FindPatch (int patchFaceId, double u, double v) const
 Returns a handle to the sub-patch of the face at the given (u,v). Note that the patch face ID corresponds to potentially quadrangulated face indices and not the base face indices (see Far::PtexIndices for more details). More...
 

Detailed Description

An quadtree-based map connecting coarse faces to their sub-patches.

PatchTable::PatchArrays contain lists of patches that represent the limit surface of a mesh, sorted by their topological type. These arrays break the connection between coarse faces and their sub-patches.

The PatchMap provides a quad-tree based lookup structure that, given a singular parametric location, can efficiently return a handle to the sub-patch that contains this location.

Constructor & Destructor Documentation

Member Function Documentation

PatchMap::Handle const * OpenSubdiv::v3_4_3::Far::PatchMap::FindPatch ( int  patchFaceId,
double  u,
double  v 
) const
inline

Returns a handle to the sub-patch of the face at the given (u,v). Note that the patch face ID corresponds to potentially quadrangulated face indices and not the base face indices (see Far::PtexIndices for more details).

Returns a handle to the sub-patch of the face at the given (u,v).

Parameters
patchFaceIdThe index of the patch (Ptex) face
uLocal u parameter
vLocal v parameter
Returns
A patch handle or 0 if the face is not supported (index out of bounds) or is tagged as a hole

Referenced by OpenSubdiv::v3_4_3::Far::LimitStencilTableFactoryReal< REAL >::Create().


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