コード例 #1
0
ファイル: manipulation.go プロジェクト: nat-n/gomesh
// 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...))...)
}
コード例 #2
0
ファイル: manipulation.go プロジェクト: nat-n/gomesh
// Applies the given transformation to every vertex.
func (m *Mesh) Transform(t tr.Transformation) {
	t.ApplyToVec3(ConvertVertexSliceToVec3ISlice(m.Vertices.GetAll())...)
}