2018-04-09 09:35:04 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.Vertex
|
2019-10-06 21:11:18 +02:00
|
|
|
* @param apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.D3.Vertex = function Vertex(
|
2019-10-06 21:11:18 +02:00
|
|
|
apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
) {
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__RUNTIME_COMPONENT__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__UPGRADE_TO_RUNTIME__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.Vertex.prototype = Object.create(R3.Component.prototype);
|
|
|
|
R3.D3.Vertex.prototype.constructor = R3.D3.Vertex;
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
R3.D3.Vertex.prototype.createInstance = function() {
|
|
|
|
|
|
|
|
__CREATE_INSTANCE__;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.Vertex.prototype.updateInstance = function(property) {
|
|
|
|
|
|
|
|
if (property === 'position') {
|
|
|
|
this.parent.updatePositions();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (property === 'normal') {
|
|
|
|
this.parent.updateNormals();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
__UPDATE_INSTANCE__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
};
|