Class VertexBufferColumns
Contents
[
Hide
]VertexBufferColumns class
Represents a vertex buffer, where every vertex attribute is represented as a vector column.
public class VertexBufferColumns
Constructors
| Name | Description |
|---|---|
| VertexBufferColumns() | The default constructor. |
| VertexBufferColumns(VertexBufferColumns) |
Properties
| Name | Description |
|---|---|
| Colors0 { get; set; } | |
| Colors1 { get; set; } | |
| Joints0 { get; set; } | |
| Joints1 { get; set; } | |
| MorphTargets { get; } | |
| Normals { get; set; } | |
| Positions { get; set; } | |
| Tangents { get; set; } | |
| TexCoords0 { get; set; } | |
| TexCoords1 { get; set; } | |
| TexCoords2 { get; set; } | |
| TexCoords3 { get; set; } | |
| Weights0 { get; set; } | |
| Weights1 { get; set; } |
Methods
| Name | Description |
|---|---|
| AddMorphTarget() | |
| GetCompatibleVertexType() | |
| GetVertex(Type, int) | |
| GetVertex<TvG,TvM>(int) | |
| GetVertex<TvG,TvM,TvS>(int) | |
| IsolateColumns() | Performs an in-place copy of the contents of every column, which guarantees that the columns of this VertexBufferColumns are not shared by any other object and can be modified safely. |
| WithTransform(IGeometryTransform) | |
| static CalculateSmoothNormals(IReadOnlyList<(VertexBufferColumns Vertices, IEnumerable<(int A, int B, int C)> Indices)>) | |
| static CalculateTangents(IReadOnlyList<(VertexBufferColumns Vertices, IEnumerable<(int A, int B, int C)> Indices)>) |
Remarks
One of the use cases of VertexBufferColumns is to bind the different attribute columns directly to the Accessor source feed, which means that if you modify the contents of a column that is bound directly to a model, you’re modifying the model’s internal data.
See Also
- namespace Aspose.CAD.FileFormats.GLB.Geometry
- assembly Aspose.CAD