 |
CubeSlicerGenerateVerticesAndTriangleIndices Method |
GenerateVerticesAndTriangleIndices returns an array of vertices of type PositionTexture3DVertex and an array of triangle indices.
That can be used to generate a mesh with represents the slices that slice the 3D cube.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic (PositionTexture3DVertex[] , int[]? ) GenerateVerticesAndTriangleIndices(
in Matrix4x4? viewMatrix,
int totalSlicesCount,
int shownSlicesCount,
float startSliceOffset,
Vector3 volumeSize,
Vector3 volumeOffset,
Transform? uvTransform = null
)
Parameters
- viewMatrix Matrix4x4
- camera's view matrix
- totalSlicesCount Int32
- total number of slices
- shownSlicesCount Int32
- number of shown slices
- startSliceOffset Single
- Specifies the offset for the starting slice. This determines where slicing begins within the volume.
- volumeSize Vector3
- Defines the size of the volume to be sliced, represented as a 3D vector.
- volumeOffset Vector3
- Specifies the offset of the volume in 3D space, allowing for positional adjustments.
- uvTransform Transform (Optional)
- An optional transformation applied to the UV coordinates. This is used to rotate the slice data.
Return Value
ValueTuplePositionTexture3DVertex,
Int32array of vertices of type PositionTexture3DVertex and array of triangle indices
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.CubeSlicer.GenerateVerticesAndTriangleIndices(System.Numerics.Matrix4x4@,System.Int32,System.Int32,System.Single,System.Numerics.Vector3,System.Numerics.Vector3,Ab4d.SharpEngine.Transformations.Transform)"]
See Also