-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgen_geometry_basic_geometry.go
115 lines (87 loc) · 2.59 KB
/
gen_geometry_basic_geometry.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
package three
// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at:
// 2018-09-04 20:56:59.33196 +0300 EEST m=+0.001328467
//
// using the following cmd:
// geometry_method_generator -geometryType BasicGeometry -geometrySlug basic_geometry
import "github.com/gopherjs/gopherjs/js"
func (g BasicGeometry) ApplyMatrix(matrix *Matrix4) {
g.Object.Call("applyMatrix", matrix)
}
func (g BasicGeometry) RotateX() {
g.Object.Call("rotateX")
}
func (g BasicGeometry) RotateY() {
g.Object.Call("rotateY")
}
func (g BasicGeometry) RotateZ() {
g.Object.Call("rotateZ")
}
func (g BasicGeometry) Translate() {
g.Object.Call("translate")
}
func (g BasicGeometry) Scale() {
g.Object.Call("scale")
}
func (g BasicGeometry) LookAt() {
g.Object.Call("lookAt")
}
func (g BasicGeometry) FromBufferGeometry(geometry Geometry) {
g.Object.Call("fromBufferGeometry")
}
func (g BasicGeometry) Center() {
g.Object.Call("center")
}
func (g BasicGeometry) Normalize() BasicGeometry {
g.Object.Call("normalize")
return g
}
func (g BasicGeometry) ComputeFaceNormals() {
g.Object.Call("computeFaceNormals")
}
func (g BasicGeometry) ComputeVertexNormals(areaWeighted bool) {
g.Object.Call("computeVertexNormals", areaWeighted)
}
func (g BasicGeometry) ComputeFlatVertexNormals() {
g.Object.Call("computeFlatVertexNormals")
}
func (g BasicGeometry) ComputeMorphNormals() {
g.Object.Call("computeMorphNormals")
}
func (g BasicGeometry) ComputeLineDistances() {
g.Object.Call("computeLineDistances")
}
func (g BasicGeometry) ComputeBoundingBox() {
g.Object.Call("computeBoundingBox")
}
func (g BasicGeometry) ComputeBoundingSphere() {
g.Object.Call("computeBoundingSphere")
}
func (g BasicGeometry) Merge(geometry Geometry, matrix Matrix4, materialIndexOffset float64) {
g.Object.Call("merge", geometry, matrix, materialIndexOffset)
}
func (g BasicGeometry) MergeMesh(mesh Mesh) {
g.Object.Call("mergeMesh", mesh.getInternalObject())
}
func (g BasicGeometry) MergeVertices() {
g.Object.Call("mergeVertices")
}
func (g BasicGeometry) SortFacesByMaterialIndex() {
g.Object.Call("sortFacesByMaterialIndex")
}
func (g BasicGeometry) ToJSON() interface{} {
return g.Object.Call("toJSON")
}
// func (g BasicGeometry) Clone() BasicGeometry {
// return g.Object.Call("clone")
// }
func (g BasicGeometry) Copy(source Object3D, recursive bool) *BasicGeometry {
return &BasicGeometry{Object: g.getInternalObject().Call("copy", source.getInternalObject(), recursive)}
}
func (g BasicGeometry) Dispose() {
g.Object.Call("dispose")
}
func (g BasicGeometry) getInternalObject() *js.Object {
return g.Object
}