class MAGES::MeshDeformations::WedgeCoords¶
Overview¶
A first-class asset holding the per-wedge (per-tet-corner) UV payload that used to live only in an unrecognized .tetuv text sidecar. A DynamicSoftbodyActor references one of these as the authoring source for its tetCornerUVs. More…
class WedgeCoords: public ScriptableObject
{
public:
// properties
float2[] TetCornerUVs;
int TetCornerCount;
int VolumeConstraintCount;
int ParticleCount;
int Version;
// methods
void SetData(
float2[] tetCornerUVs,
int volumeConstraintCount,
int particleCount,
int version
);
};
Detailed Documentation¶
A first-class asset holding the per-wedge (per-tet-corner) UV payload that used to live only in an unrecognized .tetuv text sidecar. A DynamicSoftbodyActor references one of these as the authoring source for its tetCornerUVs.
The payload is the per-face-corner UV array laid out vc*12 + faceSlot*3 + cornerInFace (see WedgeUvLayout) — the same order as DynamicSoftbodyActor.tetCornerUVs — so an assigned asset bakes into the actor with no remapping. A validation stamp (the source mesh’s volume-constraint count and particle count) is stored so a consumer can reject an asset that no longer matches its mesh.
On disk this is a .tetuv file recognized by WedgeCoordsImporter. The text format is frozen and owned by TetUvSidecar; this asset is just its in-memory / project form.
Properties¶
float2[] TetCornerUVs
Gets the per-face-corner UVs in vc*12 + faceSlot*3 + cornerInFace order (see WedgeUvLayout). Its length equals VolumeConstraintCount * 12 for a well-formed asset.
int TetCornerCount
Gets the number of per-corner UVs (TetCornerUVs.Length).
int VolumeConstraintCount
Gets the source mesh’s volume-constraint count (validation stamp).
int ParticleCount
Gets the source mesh’s particle count (validation stamp).
int Version
Gets the payload format version (mirrors TetUvSidecar.Version).
Methods¶
void SetData(
float2[] tetCornerUVs,
int volumeConstraintCount,
int particleCount,
int version
)
Populates this asset with a per-wedge UV payload and its validation stamp. Called by the importer when parsing a .tetuv file.
Parameters:
tetCornerUVs |
The per-face-corner UVs in |
volumeConstraintCount |
The source mesh’s volume-constraint count (validation stamp). |
particleCount |
The source mesh’s particle count (validation stamp). |
version |
The payload format version. |