 |
MeshUtilsCreateOutlinePositionsMesh Method |
CreateOutlinePositionsMesh creates a new TriangleMesh that is created by moving all positions for the specified outlineDistance in the direction of the normal.
The TriangleMesh is created with Vector3 as position vertex layout. To create StandardMesh with PositionNormalTexture vertex layout use
CreateOutlineStandardMesh(StandardMesh, Single, Transform, String).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic static TriangleMesh<Vector3>? CreateOutlinePositionsMesh(
StandardMesh mesh,
float outlineDistance,
Transform? transform = null,
string? meshName = null
)
Parameters
- mesh StandardMesh
- original StandardMesh
- outlineDistance Single
- distance of the moved positions
- transform Transform (Optional)
- optional transformation
- meshName String (Optional)
- optional name of the created mesh
Return Value
TriangleMeshVector3TriangleMesh with Vector3 as vertex layout (only position)
See Also