Example #1
0
func NewArraysFace3(a, b, c int, normals []*math.Vector3, colors []*math.Color, materialIndex int) *Face3 {
	return &Face3{
		A:             a,
		B:             b,
		C:             c,
		Normal:        math.NewEmptyVector3(),
		VertexNormals: normals,
		Color:         math.NewDefaultColor(),
		VertexColors:  colors,
		MaterialIndex: materialIndex,
	}
}
Example #2
0
func NewDefaultFace3(a, b, c int) *Face3 {
	return NewFace3(a, b, c, math.NewEmptyVector3(), math.NewDefaultColor(), 0)
}