2018-04-09 09:35:04 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.API.Geometry.Normal.Text
|
2019-07-24 14:45:42 +02:00
|
|
|
* @param apiGeometryNormal
|
2018-04-09 09:35:04 +02:00
|
|
|
* @param text
|
|
|
|
* @param font
|
|
|
|
* @param size
|
|
|
|
* @param height
|
|
|
|
* @param curveSegments
|
|
|
|
* @param bevelEnabled
|
|
|
|
* @param bevelThickness
|
|
|
|
* @param bevelSize
|
|
|
|
* @param bevelSegments
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.D3.API.Geometry.Normal.Text = function(
|
2019-07-24 14:45:42 +02:00
|
|
|
apiGeometryNormal,
|
2018-04-09 09:35:04 +02:00
|
|
|
text,
|
|
|
|
font,
|
|
|
|
size,
|
|
|
|
height,
|
|
|
|
curveSegments,
|
|
|
|
bevelEnabled,
|
|
|
|
bevelThickness,
|
|
|
|
bevelSize,
|
|
|
|
bevelSegments
|
|
|
|
) {
|
|
|
|
|
2019-07-24 14:45:42 +02:00
|
|
|
__API_GEOMETRY_NORMAL_MACRO__
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(text)) {
|
|
|
|
text = '-=<yb4f310';
|
|
|
|
}
|
|
|
|
this.text = text;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(font)) {
|
|
|
|
font = null;
|
|
|
|
}
|
|
|
|
this.font = font;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(size)) {
|
|
|
|
size = 10;
|
|
|
|
}
|
|
|
|
this.size = size;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(height)) {
|
|
|
|
height = 5;
|
|
|
|
}
|
|
|
|
this.height = height;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(curveSegments)) {
|
|
|
|
curveSegments = 12;
|
|
|
|
}
|
|
|
|
this.curveSegments = curveSegments;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(bevelEnabled)) {
|
|
|
|
bevelEnabled = false;
|
|
|
|
}
|
|
|
|
this.bevelEnabled = bevelEnabled;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(bevelThickness)) {
|
|
|
|
bevelThickness = 1;
|
|
|
|
}
|
|
|
|
this.bevelThickness = bevelThickness;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(bevelSize)) {
|
|
|
|
bevelSize = 8;
|
|
|
|
}
|
|
|
|
this.bevelSize = bevelSize;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(bevelSegments)) {
|
|
|
|
bevelSegments = 3;
|
|
|
|
}
|
|
|
|
this.bevelSegments = bevelSegments;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Geometry.Normal.Text.prototype = Object.create(R3.D3.API.Geometry.Normal.prototype);
|
|
|
|
R3.D3.API.Geometry.Normal.Text.prototype.constructor = R3.D3.API.Geometry.Normal.Text;
|