![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static ISurfaceMapper * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
ISurfaceMapper creates a mapping image between two user-defined geometries. The mapper basically looks for the source geometry in the inverse normal direction from the outwardly offset destination geometry, and maps pixels accordingly. This means that you can modify the normals of the destination geometry to adjust the search direction to your liking. The geometries can either be set as IGeometryDatas or as the root nodes of scenes. If both are set, the scene is used.
Definition at line 19539 of file SimplygonSDK.h.
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IObject.
|
pure virtual |
Get the destination geometry data
|
pure virtual |
Get the scene used for vertex baking.
|
pure virtual |
Get the texcoord level in the destination geom to use for the material transfer
|
pure virtual |
Get the mapping image.
|
pure virtual |
Get the mapping image settings. Currently, the only applicable settings for this mapper is size, gutter, and supersampling settings.
|
pure virtual |
Get the RecalculateSearchDirection flag. If set, the search direction from the destination mesh to the source mesh will be determined by an internal normal calculation with the specified hard edge angle. If false, the search direction will be determined by the existing normals of the destination geometry.
|
pure virtual |
Get the hard edge angle. If RecalculateSearchDirection is set, the search direction from the destination mesh to the source mesh will be determined by an internal normal calculation with the specified hard edge angle. If false, the search direction will be determined by the existing normals of the destination geometry.
|
pure virtual |
Get the RecalculateSearchDirection flag. If set, the search direction from the destination mesh to the source mesh will be determined by an internal normal calculation with the specified hard edge angle.
|
pure virtual |
Get the search offset. This is how far out from the destination geometry the search for the source geometry will begin, propagating inwardly for the length of SearchDistance. If negative, it will be set to a sane default internally, based on the mesh size.
|
pure virtual |
Get the source geometry data the surface transfer source
|
pure virtual |
Get the scene used for the surface transfer source
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IObject.
|
inlinestatic |
The IsClassA function returns true if ISurfaceMapper is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 19560 of file SimplygonSDK.h.
|
pure virtual |
Runs the surface mapping
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a ISurfaceMapper pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a ISurfaceMapper pointer |
Definition at line 19573 of file SimplygonSDK.h.
|
pure virtual |
Set the destination geometry data
value | is the destination geometry |
|
pure virtual |
Set the scene used for the surface transfer destination
value | is the destination scene object |
|
pure virtual |
Set the texcoord level in the destination geom to use for the material transfer
value | is the texcoord level |
|
pure virtual |
Set the RecalculateSearchDirection flag. If set, the search direction from the destination mesh to the source mesh will be determined by an internal normal calculation with the specified hard edge angle. If false, the search direction will be determined by the existing normals of the destination geometry.
value | is the desired flag value |
|
pure virtual |
Set the hard edge angle. If RecalculateSearchDirection is on, the search direction from the destination mesh to the source mesh will be determined by an internal normal calculation with the specified hard edge angle. If false, the search direction will be determined by the existing normals of the destination geometry.
value | is the hard angle value |
|
pure virtual |
Set the search distance. If the source geometry is found within this distance from the destination geometry, it will be mapped. If negative, it will be set to a sane default internally, based on the mesh size.
value | is the search distance value |
|
pure virtual |
Set the search offset. This is how far out from the destination geometry the search for the source geometry will begin, propagating inwardly for the length of SearchDistance. If negative, it will be set to a sane default internally, based on the mesh size.
value | is the search offset value |
|
pure virtual |
Set the source geometry data
value | is the source geometry |
|
pure virtual |
Set the scene used for the surface transfer source
value | is the source scene object |