| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- require('Polycode/Resource')
- function Mesh() {
- if(arguments[0] != "__skip_ptr__") {
- this.__ptr = Polycode.Mesh()
- }
- }
- Mesh.prototype = Object.create(Resource.prototype)
- Mesh.prototype.addSubmesh = function(newSubmesh) {
- Polycode.Mesh_addSubmesh(this.__ptr, newSubmesh)
- }
- Mesh.prototype.removeSubmeshAtIndex = function(index) {
- Polycode.Mesh_removeSubmeshAtIndex(this.__ptr, index)
- }
- Mesh.prototype.getNumSubmeshes = function() {
- return Polycode.Mesh_getNumSubmeshes(this.__ptr)
- }
- Mesh.prototype.getSubmeshAtIndex = function(index) {
- var retVal = new MeshGeometry("__skip_ptr__")
- retVal.__ptr = Polycode.Mesh_getSubmeshAtIndex(this.__ptr, index)
- return retVal
- }
- Mesh.prototype.getSubmeshPointer = function(index) {
- var retVal = new MeshGeometry("__skip_ptr__")
- retVal.__ptr = Polycode.Mesh_getSubmeshPointer(this.__ptr, index)
- return retVal
- }
- Mesh.prototype.clearMesh = function() {
- Polycode.Mesh_clearMesh(this.__ptr)
- }
- Mesh.prototype.calculateBBox = function() {
- var retVal = new Vector3("__skip_ptr__")
- retVal.__ptr = Polycode.Mesh_calculateBBox(this.__ptr)
- return retVal
- }
- Mesh.prototype.getRadius = function() {
- return Polycode.Mesh_getRadius(this.__ptr)
- }
|