/** * R3.D3.API.Mesh.Line * @constructor * @param apiMesh * @param lineWidth */ R3.D3.API.Mesh.Line = function( apiMesh, lineWidth ) { if (R3.Utils.UndefinedOrNull(apiMesh)) { apiMesh = { meshType : R3.D3.API.Mesh.MESH_TYPE_LINE }; } if (R3.Utils.UndefinedOrNull(apiMesh.meshType)) { apiMesh.meshType = R3.D3.API.Mesh.MESH_TYPE_LINE; } if (R3.Utils.UndefinedOrNull(lineWidth)) { lineWidth = 1; } this.lineWidth = lineWidth; R3.D3.API.Mesh.call( this, apiMesh.id, apiMesh.name, apiMesh.meshType, apiMesh.excludeFromEnvironment, apiMesh.vertices, apiMesh.faces, apiMesh.materials, apiMesh.parentMesh, apiMesh.parentScene, apiMesh.skeleton, apiMesh.skinIndices, apiMesh.skinWeights, apiMesh.position, apiMesh.quaternion, apiMesh.rotation, apiMesh.scale, apiMesh.up, apiMesh.modelMatrix, apiMesh.renderOrder, apiMesh.isBufferMesh, apiMesh.useQuaternion, apiMesh.visible, apiMesh.castShadow, apiMesh.receiveShadow, apiMesh.parentEntity ); }; R3.D3.API.Mesh.Line.prototype = Object.create(R3.D3.API.Mesh.prototype); R3.D3.API.Mesh.Line.prototype.constructor = R3.D3.API.Mesh.Line;