forked from divan/three
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjects_line_segments.go
More file actions
28 lines (23 loc) · 889 Bytes
/
objects_line_segments.go
File metadata and controls
28 lines (23 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package three
//go:generate go run object3d_method_generator/main.go -typeName LineSegments -typeSlug line_segments
import (
"github.com/gopherjs/gopherjs/js"
)
// LineSegments represents series of lines drawn between pairs of vertices.
type LineSegments struct {
*js.Object
ID int `js:"id"`
Position *Vector3 `js:"position"`
Rotation *Euler `js:"rotation"`
Geometry *BufferGeometry `js:"geometry"`
Material Material `js:"material"`
MatrixAutoUpdate bool `js:"matrixAutoUpdate"`
RenderOrder int `js:"renderOrder"`
Visible bool `js:"visible"`
}
// NewLineSegments creates new line segments
func NewLineSegments(geom Geometry, material Material) *LineSegments {
return &LineSegments{
Object: three.Get("LineSegments").New(geom, material),
}
}