-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_geometry_box.go
116 lines (87 loc) · 2.48 KB
/
gen_geometry_box.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package three
// Code generated by go generate; DO NOT EDIT.
//
// using the following cmd:
// geometry_method_generator -typeName BoxGeometry -typeSlug box
import "syscall/js"
// Compile-time check that this type implements Geometry interface.
var _ Geometry = BoxGeometry{}
func (g BoxGeometry) ApplyMatrix4(matrix Matrix4) {
g.Value.Call("applyMatrix4", matrix)
}
func (g BoxGeometry) RotateX() {
g.Value.Call("rotateX")
}
func (g BoxGeometry) RotateY() {
g.Value.Call("rotateY")
}
func (g BoxGeometry) RotateZ() {
g.Value.Call("rotateZ")
}
func (g BoxGeometry) Translate() {
g.Value.Call("translate")
}
func (g BoxGeometry) Scale() {
g.Value.Call("scale")
}
func (g BoxGeometry) LookAt() {
g.Value.Call("lookAt")
}
func (g BoxGeometry) FromBufferGeometry(geometry Geometry) {
g.Value.Call("fromBufferGeometry")
}
func (g BoxGeometry) Center() {
g.Value.Call("center")
}
func (g BoxGeometry) Normalize() BoxGeometry {
g.Value.Call("normalize")
return g
}
func (g BoxGeometry) ComputeFaceNormals() {
g.Value.Call("computeFaceNormals")
}
func (g BoxGeometry) ComputeVertexNormals(areaWeighted bool) {
g.Value.Call("computeVertexNormals", areaWeighted)
}
func (g BoxGeometry) ComputeFlatVertexNormals() {
g.Value.Call("computeFlatVertexNormals")
}
func (g BoxGeometry) ComputeMorphNormals() {
g.Value.Call("computeMorphNormals")
}
func (g BoxGeometry) ComputeLineDistances() {
g.Value.Call("computeLineDistances")
}
func (g BoxGeometry) ComputeBoundingBox() {
g.Value.Call("computeBoundingBox")
}
func (g BoxGeometry) ComputeBoundingSphere() {
g.Value.Call("computeBoundingSphere")
}
func (g BoxGeometry) Merge(geometry Geometry, matrix Matrix4, materialIndexOffset float64) {
g.Value.Call("merge", geometry.getInternalObject(), matrix.Value, materialIndexOffset)
}
func (g BoxGeometry) MergeMesh(mesh Mesh) {
g.Value.Call("mergeMesh", mesh.getInternalObject())
}
func (g BoxGeometry) MergeVertices() {
g.Value.Call("mergeVertices")
}
func (g BoxGeometry) SortFacesByMaterialIndex() {
g.Value.Call("sortFacesByMaterialIndex")
}
func (g BoxGeometry) ToJSON() js.Value {
return g.Value.Call("toJSON")
}
// func (g BoxGeometry) Clone() BoxGeometry {
// return g.Value.Call("clone")
// }
func (g BoxGeometry) Copy(source Object3D, recursive bool) BoxGeometry {
return BoxGeometry{Value: g.getInternalObject().Call("copy", source.getInternalObject(), recursive)}
}
func (g BoxGeometry) Dispose() {
g.Value.Call("dispose")
}
func (g BoxGeometry) getInternalObject() js.Value {
return g.Value
}