Example #1
0
// Applies the given transformation to each vertex in indices.
func (m *Mesh) TransformSubset(indices []int, t tr.Transformation) {
	t.ApplyToVec3(ConvertVertexSliceToVec3ISlice(m.Vertices.Get(indices...))...)
}
Example #2
0
// Applies the given transformation to every vertex.
func (m *Mesh) Transform(t tr.Transformation) {
	t.ApplyToVec3(ConvertVertexSliceToVec3ISlice(m.Vertices.GetAll())...)
}