 |
CubeSlicerGenerateSlices Method |
GenerateSlices can be used to generate that data for both the mesh and intersection points.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic void GenerateSlices(
in Matrix4x4? viewMatrix,
int totalSlicesCount,
int shownSlicesCount,
float startSliceOffset,
Vector3 volumeSize,
Vector3 volumeOffset,
Transform? uvTransform,
bool generateVertices,
bool generateIntersectionPoints,
out PositionTexture3DVertex[]?? vertices,
out int[]?? triangleIndices,
out Vector3[][]? intersectionPoints
)
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
- An optional transformation applied to the UV coordinates. This is used to rotate the slice data.
- generateVertices Boolean
- when true, then vertices and triangleIndices are generated
- generateIntersectionPoints Boolean
- when true, then intersectionPoints are generated
- vertices PositionTexture3DVertex
- out parameter with generated array of vertices of type PositionTexture3DVertex
- triangleIndices Int32
- out parameter with generated array of triangle indices
- intersectionPoints Vector3
- out parameter with generated array of arrays of Vector3 that represents the intersection points
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.CubeSlicer.GenerateSlices(System.Numerics.Matrix4x4@,System.Int32,System.Int32,System.Single,System.Numerics.Vector3,System.Numerics.Vector3,Ab4d.SharpEngine.Transformations.Transform,System.Boolean,System.Boolean,Ab4d.SharpEngine.Common.PositionTexture3DVertex[]@,System.Int32[]@,System.Numerics.Vector3[][]@)"]
See Also