Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsCreateOutlineStandardMesh Method

CreateOutlineStandardMesh creates a new StandardMesh that is created by moving all positions for the specified outlineDistance in the direction of the normal. The StandardMesh is created with PositionNormalTexture vertex layout. To create the mesh with only positions as vertex layout use CreateOutlinePositionsMesh(StandardMesh, Single, Transform, String).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static StandardMesh? CreateOutlineStandardMesh(
	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

StandardMesh
TriangleMesh with Vector3 as vertex layout (only position)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.CreateOutlineStandardMesh(Ab4d.SharpEngine.Meshes.StandardMesh,System.Single,Ab4d.SharpEngine.Transformations.Transform,System.String)"]

See Also