-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_geometry_buffer.go
116 lines (87 loc) · 2.58 KB
/
gen_geometry_buffer.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 BufferGeometry -typeSlug buffer
import "syscall/js"
// Compile-time check that this type implements Geometry interface.
var _ Geometry = BufferGeometry{}
func (g BufferGeometry) ApplyMatrix4(matrix Matrix4) {
g.Value.Call("applyMatrix4", matrix)
}
func (g BufferGeometry) RotateX() {
g.Value.Call("rotateX")
}
func (g BufferGeometry) RotateY() {
g.Value.Call("rotateY")
}
func (g BufferGeometry) RotateZ() {
g.Value.Call("rotateZ")
}
func (g BufferGeometry) Translate() {
g.Value.Call("translate")
}
func (g BufferGeometry) Scale() {
g.Value.Call("scale")
}
func (g BufferGeometry) LookAt() {
g.Value.Call("lookAt")
}
func (g BufferGeometry) FromBufferGeometry(geometry Geometry) {
g.Value.Call("fromBufferGeometry")
}
func (g BufferGeometry) Center() {
g.Value.Call("center")
}
func (g BufferGeometry) Normalize() BufferGeometry {
g.Value.Call("normalize")
return g
}
func (g BufferGeometry) ComputeFaceNormals() {
g.Value.Call("computeFaceNormals")
}
func (g BufferGeometry) ComputeVertexNormals(areaWeighted bool) {
g.Value.Call("computeVertexNormals", areaWeighted)
}
func (g BufferGeometry) ComputeFlatVertexNormals() {
g.Value.Call("computeFlatVertexNormals")
}
func (g BufferGeometry) ComputeMorphNormals() {
g.Value.Call("computeMorphNormals")
}
func (g BufferGeometry) ComputeLineDistances() {
g.Value.Call("computeLineDistances")
}
func (g BufferGeometry) ComputeBoundingBox() {
g.Value.Call("computeBoundingBox")
}
func (g BufferGeometry) ComputeBoundingSphere() {
g.Value.Call("computeBoundingSphere")
}
func (g BufferGeometry) Merge(geometry Geometry, matrix Matrix4, materialIndexOffset float64) {
g.Value.Call("merge", geometry.getInternalObject(), matrix.Value, materialIndexOffset)
}
func (g BufferGeometry) MergeMesh(mesh Mesh) {
g.Value.Call("mergeMesh", mesh.getInternalObject())
}
func (g BufferGeometry) MergeVertices() {
g.Value.Call("mergeVertices")
}
func (g BufferGeometry) SortFacesByMaterialIndex() {
g.Value.Call("sortFacesByMaterialIndex")
}
func (g BufferGeometry) ToJSON() js.Value {
return g.Value.Call("toJSON")
}
// func (g BufferGeometry) Clone() BufferGeometry {
// return g.Value.Call("clone")
// }
func (g BufferGeometry) Copy(source Object3D, recursive bool) BufferGeometry {
return BufferGeometry{Value: g.getInternalObject().Call("copy", source.getInternalObject(), recursive)}
}
func (g BufferGeometry) Dispose() {
g.Value.Call("dispose")
}
func (g BufferGeometry) getInternalObject() js.Value {
return g.Value
}