Help
This command links two mesh nodes and creates a trimming relationship between the nodes. Trimming relies on the concept of a cloth mesh and scissor mesh. In the case of terrain and road, terrain is the cloth mesh and road is the scissor mesh.
These instructions assume you wish to create a trim relationship between two mesh nodes. This command returns an error message if you have any incorrect elements in the selection.
1 is a good value for small meshes. 1000 is a good value for large meshes.
These instructions assume you wish to create a trim relationship between a mesh node and a link node that points at a mesh node. This command returns an error message if you have any incorrect elements in the selection.
1 is a good value for small meshes. 1000 is a good value for large meshes.
These instructions assume you wish to create a trim relationship between a mesh node and a group node that contains multiple mesh nodes or multiple link nodes that point at mesh nodes. This command returns an error message if you have any incorrect elements in the selection.
1 is a good value for small meshes. 1000 is a good value for large meshes.
Figure 1.1. The two meshes before trimming.
These meshes overlap in worldspace, but currently share no relationship. Therefore changes to
either mesh do not affect the other. Notice that while the meshes overlap, the road actually extends out across
the boundaries of the terrain. This is perfectly acceptable; the DelaunayTrimModifier trims the
scissor mesh to fit the cloth mesh.
Figure 1.2. The hierarchy before. There is no TrimModifier,
nor any shared materials. Notice the three modifiers that handle texture coordinate
projection: ProjectTextureChannel1, ProjectTextureChannel2, and
ProjectTextureChannel3.
Figure 1.3. The two meshes after. The meshes are combined geometrically.
Figure 1.4. The hierarchy after. Notice the terrain
mesh palette group has a reference ( via a link node ) to the road mesh material.
You can update the road mesh material, and the instance of the road material in
the trimmed terrain mesh hierarchy automatically updates. The terrain mesh also
has a DelaunayTrimModifier, which has been placed before the texture
coordinate projection modifiers ( moving the DelaunayTrimModifier is done by-hand ).
These two new nodes, the link node that references the
material, and the DelaunayTrimModifier that is linked to the road mesh itself, implement
the trimming relationship between these two meshes.
Figure 1.5.
This is also a valid trimming configuration. The DelaunayTrimModifier is linked
to a group node contains several link nodes. The link nodes point at scissor
meshes in different files. The individual scissor meshes cannot overlap each other.
Command registration information is as follows:
| Category Type | Information |
| Implementation | SCRIPT |
| Module | DIRECT_RELATIONSHIP_SCRIPTS.SSL |
| Category | Relationship Commands |
| GUID | {FCF57D14-BF40-4448-931F-E99EC61FA188} |
| Source Name | MeshCreateDirectTrimmingRelationship |
| Interface Name | Create Trimming Relationship |