// Do not modify export class X3DNode { constructor(kwargs = {}) { var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1.5708) { return null; } this.__groundAngle = groundAngle; var groundColor = kwargs["groundColor"] || null; if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = groundColor; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var bind = kwargs["bind"] || null; this.__bind = bind; var skyAngle = kwargs["skyAngle"] || null; if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = skyAngle; var skyColor = kwargs["skyColor"] || [0, 0, 0]; if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = skyColor; var transparency = kwargs["transparency"] || 0; if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = transparency; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set groundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } this.__groundAngle = [groundAngle]; return this; } addGroundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } if (this.__groundAngle == null) { this.__groundAngle = []; } this.__groundAngle.append(groundAngle); return this; } removeGroundAngle(groundAngle) { for( let i = 0; i < this.__groundAngle.length; i++) { if ( this.__groundAngle[i] === groundAngle) { this.__groundAngle.splice(i, 1); } } return this.__groundAngle; } get groundAngle() { return this.__groundAngle; } set groundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = [groundColor]; return this; } addGroundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } if (this.__groundColor == null) { this.__groundColor = []; } this.__groundColor.append(groundColor); return this; } removeGroundColor(groundColor) { for( let i = 0; i < this.__groundColor.length; i++) { if ( this.__groundColor[i] === groundColor) { this.__groundColor.splice(i, 1); } } return this.__groundColor; } get groundColor() { return this.__groundColor; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set skyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = [skyAngle]; return this; } addSkyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } if (this.__skyAngle == null) { this.__skyAngle = []; } this.__skyAngle.append(skyAngle); return this; } removeSkyAngle(skyAngle) { for( let i = 0; i < this.__skyAngle.length; i++) { if ( this.__skyAngle[i] === skyAngle) { this.__skyAngle.splice(i, 1); } } return this.__skyAngle; } get skyAngle() { return this.__skyAngle; } set skyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = [skyColor]; return this; } addSkyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } if (this.__skyColor == null) { this.__skyColor = []; } this.__skyColor.append(skyColor); return this; } removeSkyColor(skyColor) { for( let i = 0; i < this.__skyColor.length; i++) { if ( this.__skyColor[i] === skyColor) { this.__skyColor.splice(i, 1); } } return this.__skyColor; } get skyColor() { return this.__skyColor; } set transparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = [transparency]; return this; } addTransparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } if (this.__transparency == null) { this.__transparency = []; } this.__transparency.append(transparency); return this; } removeTransparency(transparency) { for( let i = 0; i < this.__transparency.length; i++) { if ( this.__transparency[i] === transparency) { this.__transparency.splice(i, 1); } } return this.__transparency; } get transparency() { return this.__transparency; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var color = kwargs["color"] || [1, 1, 1]; if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = color; var intensity = kwargs["intensity"] || 1; if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = intensity; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var on = kwargs["on"] || true; this.__on = on; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set intensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = [intensity]; return this; } addIntensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } if (this.__intensity == null) { this.__intensity = []; } this.__intensity.append(intensity); return this; } removeIntensity(intensity) { for( let i = 0; i < this.__intensity.length; i++) { if ( this.__intensity[i] === intensity) { this.__intensity.splice(i, 1); } } return this.__intensity; } get intensity() { return this.__intensity; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set on(on = true) { this.__on = [on]; return this; } addOn(on = true) { if (this.__on == null) { this.__on = []; } this.__on.append(on); return this; } removeOn(on) { for( let i = 0; i < this.__on.length; i++) { if ( this.__on[i] === on) { this.__on.splice(i, 1); } } return this.__on; } get isOn() { return this.__on; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__color = color; var fogType = kwargs["fogType"] || "LINEAR"; if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = fogType; var visibilityRange = kwargs["visibilityRange"] || 0; if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = visibilityRange; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set fogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = [fogType]; return this; } addFogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } if (this.__fogType == null) { this.__fogType = []; } this.__fogType.append(fogType); return this; } removeFogType(fogType) { for( let i = 0; i < this.__fogType.length; i++) { if ( this.__fogType[i] === fogType) { this.__fogType.splice(i, 1); } } return this.__fogType; } get fogType() { return this.__fogType; } set visibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = [visibilityRange]; return this; } addVisibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } if (this.__visibilityRange == null) { this.__visibilityRange = []; } this.__visibilityRange.append(visibilityRange); return this; } removeVisibilityRange(visibilityRange) { for( let i = 0; i < this.__visibilityRange.length; i++) { if ( this.__visibilityRange[i] === visibilityRange) { this.__visibilityRange.splice(i, 1); } } return this.__visibilityRange; } get visibilityRange() { return this.__visibilityRange; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += '= 6.2832) { return null; } this.__endAngle = endAngle; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var radius = kwargs["radius"] || 1; if (radius == null || radius <= 0) { return null; } this.__radius = radius; var startAngle = kwargs["startAngle"] || 0; if (startAngle == null || startAngle <= -6.2832) { return null; } if (startAngle == null || startAngle >= 6.2832) { return null; } this.__startAngle = startAngle; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += '= 6.2832) { return null; } this.__endAngle = endAngle; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var radius = kwargs["radius"] || 1; if (radius == null || radius <= 0) { return null; } this.__radius = radius; var solid = kwargs["solid"] || false; this.__solid = solid; var startAngle = kwargs["startAngle"] || 0; if (startAngle == null || startAngle <= -6.2832) { return null; } if (startAngle == null || startAngle >= 6.2832) { return null; } this.__startAngle = startAngle; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1.5708) { return null; } this.__groundAngle = groundAngle; var groundColor = kwargs["groundColor"] || null; if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = groundColor; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var leftUrl = kwargs["leftUrl"] || null; this.__leftUrl = leftUrl; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var rightUrl = kwargs["rightUrl"] || null; this.__rightUrl = rightUrl; var bind = kwargs["bind"] || null; this.__bind = bind; var skyAngle = kwargs["skyAngle"] || null; if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = skyAngle; var skyColor = kwargs["skyColor"] || [0, 0, 0]; if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = skyColor; var topUrl = kwargs["topUrl"] || null; this.__topUrl = topUrl; var transparency = kwargs["transparency"] || 0; if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = transparency; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set backUrl(backUrl = null) { this.__backUrl = [backUrl]; return this; } addBackUrl(backUrl = null) { if (this.__backUrl == null) { this.__backUrl = []; } this.__backUrl.append(backUrl); return this; } removeBackUrl(backUrl) { for( let i = 0; i < this.__backUrl.length; i++) { if ( this.__backUrl[i] === backUrl) { this.__backUrl.splice(i, 1); } } return this.__backUrl; } get backUrl() { return this.__backUrl; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set bottomUrl(bottomUrl = null) { this.__bottomUrl = [bottomUrl]; return this; } addBottomUrl(bottomUrl = null) { if (this.__bottomUrl == null) { this.__bottomUrl = []; } this.__bottomUrl.append(bottomUrl); return this; } removeBottomUrl(bottomUrl) { for( let i = 0; i < this.__bottomUrl.length; i++) { if ( this.__bottomUrl[i] === bottomUrl) { this.__bottomUrl.splice(i, 1); } } return this.__bottomUrl; } get bottomUrl() { return this.__bottomUrl; } set frontUrl(frontUrl = null) { this.__frontUrl = [frontUrl]; return this; } addFrontUrl(frontUrl = null) { if (this.__frontUrl == null) { this.__frontUrl = []; } this.__frontUrl.append(frontUrl); return this; } removeFrontUrl(frontUrl) { for( let i = 0; i < this.__frontUrl.length; i++) { if ( this.__frontUrl[i] === frontUrl) { this.__frontUrl.splice(i, 1); } } return this.__frontUrl; } get frontUrl() { return this.__frontUrl; } set groundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } this.__groundAngle = [groundAngle]; return this; } addGroundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } if (this.__groundAngle == null) { this.__groundAngle = []; } this.__groundAngle.append(groundAngle); return this; } removeGroundAngle(groundAngle) { for( let i = 0; i < this.__groundAngle.length; i++) { if ( this.__groundAngle[i] === groundAngle) { this.__groundAngle.splice(i, 1); } } return this.__groundAngle; } get groundAngle() { return this.__groundAngle; } set groundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = [groundColor]; return this; } addGroundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } if (this.__groundColor == null) { this.__groundColor = []; } this.__groundColor.append(groundColor); return this; } removeGroundColor(groundColor) { for( let i = 0; i < this.__groundColor.length; i++) { if ( this.__groundColor[i] === groundColor) { this.__groundColor.splice(i, 1); } } return this.__groundColor; } get groundColor() { return this.__groundColor; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set leftUrl(leftUrl = null) { this.__leftUrl = [leftUrl]; return this; } addLeftUrl(leftUrl = null) { if (this.__leftUrl == null) { this.__leftUrl = []; } this.__leftUrl.append(leftUrl); return this; } removeLeftUrl(leftUrl) { for( let i = 0; i < this.__leftUrl.length; i++) { if ( this.__leftUrl[i] === leftUrl) { this.__leftUrl.splice(i, 1); } } return this.__leftUrl; } get leftUrl() { return this.__leftUrl; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set rightUrl(rightUrl = null) { this.__rightUrl = [rightUrl]; return this; } addRightUrl(rightUrl = null) { if (this.__rightUrl == null) { this.__rightUrl = []; } this.__rightUrl.append(rightUrl); return this; } removeRightUrl(rightUrl) { for( let i = 0; i < this.__rightUrl.length; i++) { if ( this.__rightUrl[i] === rightUrl) { this.__rightUrl.splice(i, 1); } } return this.__rightUrl; } get rightUrl() { return this.__rightUrl; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set skyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = [skyAngle]; return this; } addSkyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } if (this.__skyAngle == null) { this.__skyAngle = []; } this.__skyAngle.append(skyAngle); return this; } removeSkyAngle(skyAngle) { for( let i = 0; i < this.__skyAngle.length; i++) { if ( this.__skyAngle[i] === skyAngle) { this.__skyAngle.splice(i, 1); } } return this.__skyAngle; } get skyAngle() { return this.__skyAngle; } set skyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = [skyColor]; return this; } addSkyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } if (this.__skyColor == null) { this.__skyColor = []; } this.__skyColor.append(skyColor); return this; } removeSkyColor(skyColor) { for( let i = 0; i < this.__skyColor.length; i++) { if ( this.__skyColor[i] === skyColor) { this.__skyColor.splice(i, 1); } } return this.__skyColor; } get skyColor() { return this.__skyColor; } set topUrl(topUrl = null) { this.__topUrl = [topUrl]; return this; } addTopUrl(topUrl = null) { if (this.__topUrl == null) { this.__topUrl = []; } this.__topUrl.append(topUrl); return this; } removeTopUrl(topUrl) { for( let i = 0; i < this.__topUrl.length; i++) { if ( this.__topUrl[i] === topUrl) { this.__topUrl.splice(i, 1); } } return this.__topUrl; } get topUrl() { return this.__topUrl; } set transparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = [transparency]; return this; } addTransparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } if (this.__transparency == null) { this.__transparency = []; } this.__transparency.append(transparency); return this; } removeTransparency(transparency) { for( let i = 0; i < this.__transparency.length; i++) { if ( this.__transparency[i] === transparency) { this.__transparency.splice(i, 1); } } return this.__transparency; } get transparency() { return this.__transparency; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__weightConstant1 = weightConstant1; var weightConstant2 = kwargs["weightConstant2"] || 0.5; if (weightConstant2 == null || weightConstant2 < 0) { return null; } if (weightConstant2 == null || weightConstant2 > 1) { return null; } this.__weightConstant2 = weightConstant2; var weightFunction1 = kwargs["weightFunction1"] || "CONSTANT"; if ('CONSTANT' === weightFunction1) { } else if ('ALPHA1' === weightFunction1) { } else if ('ALPHA2' === weightFunction1) { } else if ('ONE_MINUS_ALPHA1' === weightFunction1) { } else if ('ONE_MINUS_ALPHA2' === weightFunction1) { } else if ('TABLE' === weightFunction1) { } else { return null; } this.__weightFunction1 = weightFunction1; var weightFunction2 = kwargs["weightFunction2"] || "CONSTANT"; if ('CONSTANT' === weightFunction2) { } else if ('ALPHA1' === weightFunction2) { } else if ('ALPHA2' === weightFunction2) { } else if ('ONE_MINUS_ALPHA1' === weightFunction2) { } else if ('ONE_MINUS_ALPHA2' === weightFunction2) { } else if ('TABLE' === weightFunction2) { } else { return null; } this.__weightFunction2 = weightFunction2; var weightTransferFunction1 = kwargs["weightTransferFunction1"] || null; this.__weightTransferFunction1 = weightTransferFunction1; var weightTransferFunction2 = kwargs["weightTransferFunction2"] || null; this.__weightTransferFunction2 = weightTransferFunction2; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set renderStyle(renderStyle = null) { this.__renderStyle = [renderStyle]; return this; } addRenderStyle(renderStyle = null) { if (this.__renderStyle == null) { this.__renderStyle = []; } this.__renderStyle.append(renderStyle); return this; } removeRenderStyle(renderStyle) { for( let i = 0; i < this.__renderStyle.length; i++) { if ( this.__renderStyle[i] === renderStyle) { this.__renderStyle.splice(i, 1); } } return this.__renderStyle; } get renderStyle() { return this.__renderStyle; } set voxels(voxels = null) { this.__voxels = [voxels]; return this; } addVoxels(voxels = null) { if (this.__voxels == null) { this.__voxels = []; } this.__voxels.append(voxels); return this; } removeVoxels(voxels) { for( let i = 0; i < this.__voxels.length; i++) { if ( this.__voxels[i] === voxels) { this.__voxels.splice(i, 1); } } return this.__voxels; } get voxels() { return this.__voxels; } set weightConstant1(weightConstant1 = 0.5) { if (weightConstant1 == null || weightConstant1 < 0) { return null; } if (weightConstant1 == null || weightConstant1 > 1) { return null; } this.__weightConstant1 = [weightConstant1]; return this; } addWeightConstant1(weightConstant1 = 0.5) { if (weightConstant1 == null || weightConstant1 < 0) { return null; } if (weightConstant1 == null || weightConstant1 > 1) { return null; } if (this.__weightConstant1 == null) { this.__weightConstant1 = []; } this.__weightConstant1.append(weightConstant1); return this; } removeWeightConstant1(weightConstant1) { for( let i = 0; i < this.__weightConstant1.length; i++) { if ( this.__weightConstant1[i] === weightConstant1) { this.__weightConstant1.splice(i, 1); } } return this.__weightConstant1; } get weightConstant1() { return this.__weightConstant1; } set weightConstant2(weightConstant2 = 0.5) { if (weightConstant2 == null || weightConstant2 < 0) { return null; } if (weightConstant2 == null || weightConstant2 > 1) { return null; } this.__weightConstant2 = [weightConstant2]; return this; } addWeightConstant2(weightConstant2 = 0.5) { if (weightConstant2 == null || weightConstant2 < 0) { return null; } if (weightConstant2 == null || weightConstant2 > 1) { return null; } if (this.__weightConstant2 == null) { this.__weightConstant2 = []; } this.__weightConstant2.append(weightConstant2); return this; } removeWeightConstant2(weightConstant2) { for( let i = 0; i < this.__weightConstant2.length; i++) { if ( this.__weightConstant2[i] === weightConstant2) { this.__weightConstant2.splice(i, 1); } } return this.__weightConstant2; } get weightConstant2() { return this.__weightConstant2; } set weightFunction1(weightFunction1 = "CONSTANT") { if ('CONSTANT' === weightFunction1) { } else if ('ALPHA1' === weightFunction1) { } else if ('ALPHA2' === weightFunction1) { } else if ('ONE_MINUS_ALPHA1' === weightFunction1) { } else if ('ONE_MINUS_ALPHA2' === weightFunction1) { } else if ('TABLE' === weightFunction1) { } else { return null; } this.__weightFunction1 = [weightFunction1]; return this; } addWeightFunction1(weightFunction1 = "CONSTANT") { if ('CONSTANT' === weightFunction1) { } else if ('ALPHA1' === weightFunction1) { } else if ('ALPHA2' === weightFunction1) { } else if ('ONE_MINUS_ALPHA1' === weightFunction1) { } else if ('ONE_MINUS_ALPHA2' === weightFunction1) { } else if ('TABLE' === weightFunction1) { } else { return null; } if (this.__weightFunction1 == null) { this.__weightFunction1 = []; } this.__weightFunction1.append(weightFunction1); return this; } removeWeightFunction1(weightFunction1) { for( let i = 0; i < this.__weightFunction1.length; i++) { if ( this.__weightFunction1[i] === weightFunction1) { this.__weightFunction1.splice(i, 1); } } return this.__weightFunction1; } get weightFunction1() { return this.__weightFunction1; } set weightFunction2(weightFunction2 = "CONSTANT") { if ('CONSTANT' === weightFunction2) { } else if ('ALPHA1' === weightFunction2) { } else if ('ALPHA2' === weightFunction2) { } else if ('ONE_MINUS_ALPHA1' === weightFunction2) { } else if ('ONE_MINUS_ALPHA2' === weightFunction2) { } else if ('TABLE' === weightFunction2) { } else { return null; } this.__weightFunction2 = [weightFunction2]; return this; } addWeightFunction2(weightFunction2 = "CONSTANT") { if ('CONSTANT' === weightFunction2) { } else if ('ALPHA1' === weightFunction2) { } else if ('ALPHA2' === weightFunction2) { } else if ('ONE_MINUS_ALPHA1' === weightFunction2) { } else if ('ONE_MINUS_ALPHA2' === weightFunction2) { } else if ('TABLE' === weightFunction2) { } else { return null; } if (this.__weightFunction2 == null) { this.__weightFunction2 = []; } this.__weightFunction2.append(weightFunction2); return this; } removeWeightFunction2(weightFunction2) { for( let i = 0; i < this.__weightFunction2.length; i++) { if ( this.__weightFunction2[i] === weightFunction2) { this.__weightFunction2.splice(i, 1); } } return this.__weightFunction2; } get weightFunction2() { return this.__weightFunction2; } set weightTransferFunction1(weightTransferFunction1 = null) { this.__weightTransferFunction1 = [weightTransferFunction1]; return this; } addWeightTransferFunction1(weightTransferFunction1 = null) { if (this.__weightTransferFunction1 == null) { this.__weightTransferFunction1 = []; } this.__weightTransferFunction1.append(weightTransferFunction1); return this; } removeWeightTransferFunction1(weightTransferFunction1) { for( let i = 0; i < this.__weightTransferFunction1.length; i++) { if ( this.__weightTransferFunction1[i] === weightTransferFunction1) { this.__weightTransferFunction1.splice(i, 1); } } return this.__weightTransferFunction1; } get weightTransferFunction1() { return this.__weightTransferFunction1; } set weightTransferFunction2(weightTransferFunction2 = null) { this.__weightTransferFunction2 = [weightTransferFunction2]; return this; } addWeightTransferFunction2(weightTransferFunction2 = null) { if (this.__weightTransferFunction2 == null) { this.__weightTransferFunction2 = []; } this.__weightTransferFunction2.append(weightTransferFunction2); return this; } removeWeightTransferFunction2(weightTransferFunction2) { for( let i = 0; i < this.__weightTransferFunction2.length; i++) { if ( this.__weightTransferFunction2[i] === weightTransferFunction2) { this.__weightTransferFunction2.splice(i, 1); } } return this.__weightTransferFunction2; } get weightTransferFunction2() { return this.__weightTransferFunction2; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__boundaryOpacity = boundaryOpacity; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var opacityFactor = kwargs["opacityFactor"] || 2; if (opacityFactor == null || opacityFactor < 0) { return null; } this.__opacityFactor = opacityFactor; var retainedOpacity = kwargs["retainedOpacity"] || 0.2; if (retainedOpacity == null || retainedOpacity < 0) { return null; } if (retainedOpacity == null || retainedOpacity > 1) { return null; } this.__retainedOpacity = retainedOpacity; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set boundaryOpacity(boundaryOpacity = 0.9) { if (boundaryOpacity == null || boundaryOpacity < 0) { return null; } if (boundaryOpacity == null || boundaryOpacity > 1) { return null; } this.__boundaryOpacity = [boundaryOpacity]; return this; } addBoundaryOpacity(boundaryOpacity = 0.9) { if (boundaryOpacity == null || boundaryOpacity < 0) { return null; } if (boundaryOpacity == null || boundaryOpacity > 1) { return null; } if (this.__boundaryOpacity == null) { this.__boundaryOpacity = []; } this.__boundaryOpacity.append(boundaryOpacity); return this; } removeBoundaryOpacity(boundaryOpacity) { for( let i = 0; i < this.__boundaryOpacity.length; i++) { if ( this.__boundaryOpacity[i] === boundaryOpacity) { this.__boundaryOpacity.splice(i, 1); } } return this.__boundaryOpacity; } get boundaryOpacity() { return this.__boundaryOpacity; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set opacityFactor(opacityFactor = 2) { if (opacityFactor == null || opacityFactor < 0) { return null; } this.__opacityFactor = [opacityFactor]; return this; } addOpacityFactor(opacityFactor = 2) { if (opacityFactor == null || opacityFactor < 0) { return null; } if (this.__opacityFactor == null) { this.__opacityFactor = []; } this.__opacityFactor.append(opacityFactor); return this; } removeOpacityFactor(opacityFactor) { for( let i = 0; i < this.__opacityFactor.length; i++) { if ( this.__opacityFactor[i] === opacityFactor) { this.__opacityFactor.splice(i, 1); } } return this.__opacityFactor; } get opacityFactor() { return this.__opacityFactor; } set retainedOpacity(retainedOpacity = 0.2) { if (retainedOpacity == null || retainedOpacity < 0) { return null; } if (retainedOpacity == null || retainedOpacity > 1) { return null; } this.__retainedOpacity = [retainedOpacity]; return this; } addRetainedOpacity(retainedOpacity = 0.2) { if (retainedOpacity == null || retainedOpacity < 0) { return null; } if (retainedOpacity == null || retainedOpacity > 1) { return null; } if (this.__retainedOpacity == null) { this.__retainedOpacity = []; } this.__retainedOpacity.append(retainedOpacity); return this; } removeRetainedOpacity(retainedOpacity) { for( let i = 0; i < this.__retainedOpacity.length; i++) { if ( this.__retainedOpacity[i] === retainedOpacity) { this.__retainedOpacity.splice(i, 1); } } return this.__retainedOpacity; } get retainedOpacity() { return this.__retainedOpacity; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 64) { return null; } this.__colorSteps = colorSteps; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var orthogonalColor = kwargs["orthogonalColor"] || [1, 1, 1, 1]; if (orthogonalColor == null || orthogonalColor < 0) { return null; } if (orthogonalColor == null || orthogonalColor > 1) { return null; } this.__orthogonalColor = orthogonalColor; var parallelColor = kwargs["parallelColor"] || [0, 0, 0, 1]; if (parallelColor == null || parallelColor < 0) { return null; } if (parallelColor == null || parallelColor > 1) { return null; } this.__parallelColor = parallelColor; var surfaceNormals = kwargs["surfaceNormals"] || null; this.__surfaceNormals = surfaceNormals; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set colorSteps(colorSteps = 4) { if (colorSteps == null || colorSteps < 1) { return null; } if (colorSteps == null || colorSteps > 64) { return null; } this.__colorSteps = [colorSteps]; return this; } addColorSteps(colorSteps = 4) { if (colorSteps == null || colorSteps < 1) { return null; } if (colorSteps == null || colorSteps > 64) { return null; } if (this.__colorSteps == null) { this.__colorSteps = []; } this.__colorSteps.append(colorSteps); return this; } removeColorSteps(colorSteps) { for( let i = 0; i < this.__colorSteps.length; i++) { if ( this.__colorSteps[i] === colorSteps) { this.__colorSteps.splice(i, 1); } } return this.__colorSteps; } get colorSteps() { return this.__colorSteps; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set orthogonalColor(orthogonalColor = [1, 1, 1, 1]) { if (orthogonalColor == null || orthogonalColor < 0) { return null; } if (orthogonalColor == null || orthogonalColor > 1) { return null; } this.__orthogonalColor = [orthogonalColor]; return this; } addOrthogonalColor(orthogonalColor = [1, 1, 1, 1]) { if (orthogonalColor == null || orthogonalColor < 0) { return null; } if (orthogonalColor == null || orthogonalColor > 1) { return null; } if (this.__orthogonalColor == null) { this.__orthogonalColor = []; } this.__orthogonalColor.append(orthogonalColor); return this; } removeOrthogonalColor(orthogonalColor) { for( let i = 0; i < this.__orthogonalColor.length; i++) { if ( this.__orthogonalColor[i] === orthogonalColor) { this.__orthogonalColor.splice(i, 1); } } return this.__orthogonalColor; } get orthogonalColor() { return this.__orthogonalColor; } set parallelColor(parallelColor = [0, 0, 0, 1]) { if (parallelColor == null || parallelColor < 0) { return null; } if (parallelColor == null || parallelColor > 1) { return null; } this.__parallelColor = [parallelColor]; return this; } addParallelColor(parallelColor = [0, 0, 0, 1]) { if (parallelColor == null || parallelColor < 0) { return null; } if (parallelColor == null || parallelColor > 1) { return null; } if (this.__parallelColor == null) { this.__parallelColor = []; } this.__parallelColor.append(parallelColor); return this; } removeParallelColor(parallelColor) { for( let i = 0; i < this.__parallelColor.length; i++) { if ( this.__parallelColor[i] === parallelColor) { this.__parallelColor.splice(i, 1); } } return this.__parallelColor; } get parallelColor() { return this.__parallelColor; } set surfaceNormals(surfaceNormals = null) { this.__surfaceNormals = [surfaceNormals]; return this; } addSurfaceNormals(surfaceNormals = null) { if (this.__surfaceNormals == null) { this.__surfaceNormals = []; } this.__surfaceNormals.append(surfaceNormals); return this; } removeSurfaceNormals(surfaceNormals) { for( let i = 0; i < this.__surfaceNormals.length; i++) { if ( this.__surfaceNormals[i] === surfaceNormals) { this.__surfaceNormals.splice(i, 1); } } return this.__surfaceNormals; } get surfaceNormals() { return this.__surfaceNormals; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__plane = plane; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set plane(plane = [0, 1, 0, 0]) { if (plane == null || plane < -1) { return null; } if (plane == null || plane > 1) { return null; } this.__plane = [plane]; return this; } addPlane(plane = [0, 1, 0, 0]) { if (plane == null || plane < -1) { return null; } if (plane == null || plane > 1) { return null; } if (this.__plane == null) { this.__plane = []; } this.__plane.append(plane); return this; } removePlane(plane) { for( let i = 0; i < this.__plane.length; i++) { if ( this.__plane[i] === plane) { this.__plane.splice(i, 1); } } return this.__plane; } get plane() { return this.__plane; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__bounce = bounce; var collidables = kwargs["collidables"] || null; this.__collidables = collidables; var displayBBox = kwargs["displayBBox"] || false; this.__displayBBox = displayBBox; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var frictionCoefficients = kwargs["frictionCoefficients"] || [0, 0]; if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } this.__frictionCoefficients = frictionCoefficients; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var minBounceSpeed = kwargs["minBounceSpeed"] || 0.1; if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } this.__minBounceSpeed = minBounceSpeed; var slipFactors = kwargs["slipFactors"] || [0, 0]; this.__slipFactors = slipFactors; var softnessConstantForceMix = kwargs["softnessConstantForceMix"] || 0.0001; if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } this.__softnessConstantForceMix = softnessConstantForceMix; var softnessErrorCorrection = kwargs["softnessErrorCorrection"] || 0.8; if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } this.__softnessErrorCorrection = softnessErrorCorrection; var surfaceSpeed = kwargs["surfaceSpeed"] || [0, 0]; this.__surfaceSpeed = surfaceSpeed; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set appliedParameters(appliedParameters = ["BOUNCE"]) { if ('"BOUNCE"' === appliedParameters) { } else if ('"USER_FRICTION"' === appliedParameters) { } else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) { } else if ('"ERROR_REDUCTION"' === appliedParameters) { } else if ('"CONSTANT_FORCE"' === appliedParameters) { } else if ('"SPEED-1"' === appliedParameters) { } else if ('"SPEED-2"' === appliedParameters) { } else if ('"SLIP-1"' === appliedParameters) { } else if ('"SLIP-2"' === appliedParameters) { } else { return null; } this.__appliedParameters = [appliedParameters]; return this; } addAppliedParameters(appliedParameters = ["BOUNCE"]) { if ('"BOUNCE"' === appliedParameters) { } else if ('"USER_FRICTION"' === appliedParameters) { } else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) { } else if ('"ERROR_REDUCTION"' === appliedParameters) { } else if ('"CONSTANT_FORCE"' === appliedParameters) { } else if ('"SPEED-1"' === appliedParameters) { } else if ('"SPEED-2"' === appliedParameters) { } else if ('"SLIP-1"' === appliedParameters) { } else if ('"SLIP-2"' === appliedParameters) { } else { return null; } if (this.__appliedParameters == null) { this.__appliedParameters = []; } this.__appliedParameters.append(appliedParameters); return this; } removeAppliedParameters(appliedParameters) { for( let i = 0; i < this.__appliedParameters.length; i++) { if ( this.__appliedParameters[i] === appliedParameters) { this.__appliedParameters.splice(i, 1); } } return this.__appliedParameters; } get appliedParameters() { return this.__appliedParameters; } set bounce(bounce = 0) { if (bounce == null || bounce < 0) { return null; } if (bounce == null || bounce > 1) { return null; } this.__bounce = [bounce]; return this; } addBounce(bounce = 0) { if (bounce == null || bounce < 0) { return null; } if (bounce == null || bounce > 1) { return null; } if (this.__bounce == null) { this.__bounce = []; } this.__bounce.append(bounce); return this; } removeBounce(bounce) { for( let i = 0; i < this.__bounce.length; i++) { if ( this.__bounce[i] === bounce) { this.__bounce.splice(i, 1); } } return this.__bounce; } get bounce() { return this.__bounce; } set collidables(collidables = null) { this.__collidables = [collidables]; return this; } addCollidables(collidables = null) { if (this.__collidables == null) { this.__collidables = []; } this.__collidables.append(collidables); return this; } removeCollidables(collidables) { for( let i = 0; i < this.__collidables.length; i++) { if ( this.__collidables[i] === collidables) { this.__collidables.splice(i, 1); } } return this.__collidables; } get collidables() { return this.__collidables; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set frictionCoefficients(frictionCoefficients = [0, 0]) { if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } this.__frictionCoefficients = [frictionCoefficients]; return this; } addFrictionCoefficients(frictionCoefficients = [0, 0]) { if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } if (this.__frictionCoefficients == null) { this.__frictionCoefficients = []; } this.__frictionCoefficients.append(frictionCoefficients); return this; } removeFrictionCoefficients(frictionCoefficients) { for( let i = 0; i < this.__frictionCoefficients.length; i++) { if ( this.__frictionCoefficients[i] === frictionCoefficients) { this.__frictionCoefficients.splice(i, 1); } } return this.__frictionCoefficients; } get frictionCoefficients() { return this.__frictionCoefficients; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set minBounceSpeed(minBounceSpeed = 0.1) { if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } this.__minBounceSpeed = [minBounceSpeed]; return this; } addMinBounceSpeed(minBounceSpeed = 0.1) { if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } if (this.__minBounceSpeed == null) { this.__minBounceSpeed = []; } this.__minBounceSpeed.append(minBounceSpeed); return this; } removeMinBounceSpeed(minBounceSpeed) { for( let i = 0; i < this.__minBounceSpeed.length; i++) { if ( this.__minBounceSpeed[i] === minBounceSpeed) { this.__minBounceSpeed.splice(i, 1); } } return this.__minBounceSpeed; } get minBounceSpeed() { return this.__minBounceSpeed; } set slipFactors(slipFactors = [0, 0]) { this.__slipFactors = [slipFactors]; return this; } addSlipFactors(slipFactors = [0, 0]) { if (this.__slipFactors == null) { this.__slipFactors = []; } this.__slipFactors.append(slipFactors); return this; } removeSlipFactors(slipFactors) { for( let i = 0; i < this.__slipFactors.length; i++) { if ( this.__slipFactors[i] === slipFactors) { this.__slipFactors.splice(i, 1); } } return this.__slipFactors; } get slipFactors() { return this.__slipFactors; } set softnessConstantForceMix(softnessConstantForceMix = 0.0001) { if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } this.__softnessConstantForceMix = [softnessConstantForceMix]; return this; } addSoftnessConstantForceMix(softnessConstantForceMix = 0.0001) { if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } if (this.__softnessConstantForceMix == null) { this.__softnessConstantForceMix = []; } this.__softnessConstantForceMix.append(softnessConstantForceMix); return this; } removeSoftnessConstantForceMix(softnessConstantForceMix) { for( let i = 0; i < this.__softnessConstantForceMix.length; i++) { if ( this.__softnessConstantForceMix[i] === softnessConstantForceMix) { this.__softnessConstantForceMix.splice(i, 1); } } return this.__softnessConstantForceMix; } get softnessConstantForceMix() { return this.__softnessConstantForceMix; } set softnessErrorCorrection(softnessErrorCorrection = 0.8) { if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } this.__softnessErrorCorrection = [softnessErrorCorrection]; return this; } addSoftnessErrorCorrection(softnessErrorCorrection = 0.8) { if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } if (this.__softnessErrorCorrection == null) { this.__softnessErrorCorrection = []; } this.__softnessErrorCorrection.append(softnessErrorCorrection); return this; } removeSoftnessErrorCorrection(softnessErrorCorrection) { for( let i = 0; i < this.__softnessErrorCorrection.length; i++) { if ( this.__softnessErrorCorrection[i] === softnessErrorCorrection) { this.__softnessErrorCorrection.splice(i, 1); } } return this.__softnessErrorCorrection; } get softnessErrorCorrection() { return this.__softnessErrorCorrection; } set surfaceSpeed(surfaceSpeed = [0, 0]) { this.__surfaceSpeed = [surfaceSpeed]; return this; } addSurfaceSpeed(surfaceSpeed = [0, 0]) { if (this.__surfaceSpeed == null) { this.__surfaceSpeed = []; } this.__surfaceSpeed.append(surfaceSpeed); return this; } removeSurfaceSpeed(surfaceSpeed) { for( let i = 0; i < this.__surfaceSpeed.length; i++) { if ( this.__surfaceSpeed[i] === surfaceSpeed) { this.__surfaceSpeed.splice(i, 1); } } return this.__surfaceSpeed; } get surfaceSpeed() { return this.__surfaceSpeed; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__color = color; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set color(color = null) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = null) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__initialDestination = initialDestination; var initialValue = kwargs["initialValue"] || [0.8, 0.8, 0.8]; if (initialValue == null || initialValue.length <= 0 || Math.min(initialValue) < 0) { return null; } if (initialValue == null || initialValue.length <= 0 || Math.max(initialValue) > 1) { return null; } this.__initialValue = initialValue; var IS = kwargs["IS"] || null; this.__IS = IS; var Active = kwargs["Active"] || null; this.__Active = Active; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var destination = kwargs["destination"] || null; if (destination == null || destination.length <= 0 || Math.min(destination) < 0) { return null; } if (destination == null || destination.length <= 0 || Math.max(destination) > 1) { return null; } this.__destination = destination; var value = kwargs["value"] || null; if (value == null || value.length <= 0 || Math.min(value) < 0) { return null; } if (value == null || value.length <= 0 || Math.max(value) > 1) { return null; } this.__value = value; var value_changed = kwargs["value_changed"] || null; if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) { return null; } if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) { return null; } this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { if (destination == null || destination.length <= 0 || Math.min(destination) < 0) { return null; } if (destination == null || destination.length <= 0 || Math.max(destination) > 1) { return null; } this.__destination = [destination]; return this; } set set_value(value = null) { if (value == null || value.length <= 0 || Math.min(value) < 0) { return null; } if (value == null || value.length <= 0 || Math.max(value) > 1) { return null; } this.__value = [value]; return this; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__initialDestination = initialDestination; var initialValue = kwargs["initialValue"] || [0.8, 0.8, 0.8]; if (initialValue == null || initialValue.length <= 0 || Math.min(initialValue) < 0) { return null; } if (initialValue == null || initialValue.length <= 0 || Math.max(initialValue) > 1) { return null; } this.__initialValue = initialValue; var IS = kwargs["IS"] || null; this.__IS = IS; var Active = kwargs["Active"] || null; this.__Active = Active; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var order = kwargs["order"] || 3; if (order == null || order < 0) { return null; } if (order == null || order > 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; if (destination == null || destination.length <= 0 || Math.min(destination) < 0) { return null; } if (destination == null || destination.length <= 0 || Math.max(destination) > 1) { return null; } this.__destination = destination; var value = kwargs["value"] || null; if (value == null || value.length <= 0 || Math.min(value) < 0) { return null; } if (value == null || value.length <= 0 || Math.max(value) > 1) { return null; } this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) { return null; } if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) { return null; } this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { if (destination == null || destination.length <= 0 || Math.min(destination) < 0) { return null; } if (destination == null || destination.length <= 0 || Math.max(destination) > 1) { return null; } this.__destination = [destination]; return this; } set set_value(value = null) { if (value == null || value.length <= 0 || Math.min(value) < 0) { return null; } if (value == null || value.length <= 0 || Math.max(value) > 1) { return null; } this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__keyValue = keyValue; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var fraction = kwargs["fraction"] || null; this.__fraction = fraction; var value_changed = kwargs["value_changed"] || null; if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) { return null; } if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) { return null; } this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set key(key = null) { this.__key = [key]; return this; } addKey(key = null) { if (this.__key == null) { this.__key = []; } this.__key.append(key); return this; } removeKey(key) { for( let i = 0; i < this.__key.length; i++) { if ( this.__key[i] === key) { this.__key.splice(i, 1); } } return this.__key; } get key() { return this.__key; } set keyValue(keyValue = null) { if (keyValue == null || keyValue.length <= 0 || Math.min(keyValue) < 0) { return null; } if (keyValue == null || keyValue.length <= 0 || Math.max(keyValue) > 1) { return null; } this.__keyValue = [keyValue]; return this; } addKeyValue(keyValue = null) { if (keyValue == null || keyValue.length <= 0 || Math.min(keyValue) < 0) { return null; } if (keyValue == null || keyValue.length <= 0 || Math.max(keyValue) > 1) { return null; } if (this.__keyValue == null) { this.__keyValue = []; } this.__keyValue.append(keyValue); return this; } removeKeyValue(keyValue) { for( let i = 0; i < this.__keyValue.length; i++) { if ( this.__keyValue[i] === keyValue) { this.__keyValue.splice(i, 1); } } return this.__keyValue; } get keyValue() { return this.__keyValue; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_fraction(fraction = null) { this.__fraction = [fraction]; return this; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__color = color; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set color(color = null) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = null) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 3.1416) { return null; } this.__angle = angle; var direction = kwargs["direction"] || [0, 1, 0]; if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } this.__direction = direction; var IS = kwargs["IS"] || null; this.__IS = IS; var mass = kwargs["mass"] || 0; if (mass == null || mass < 0) { return null; } this.__mass = mass; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var position = kwargs["position"] || [0, 0, 0]; this.__position = position; var speed = kwargs["speed"] || 0; if (speed == null || speed < 0) { return null; } this.__speed = speed; var surfaceArea = kwargs["surfaceArea"] || 0; if (surfaceArea == null || surfaceArea < 0) { return null; } this.__surfaceArea = surfaceArea; var variation = kwargs["variation"] || 0.25; if (variation == null || variation < 0) { return null; } this.__variation = variation; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set angle(angle = 0.7854) { if (angle == null || angle < 0) { return null; } if (angle == null || angle > 3.1416) { return null; } this.__angle = [angle]; return this; } addAngle(angle = 0.7854) { if (angle == null || angle < 0) { return null; } if (angle == null || angle > 3.1416) { return null; } if (this.__angle == null) { this.__angle = []; } this.__angle.append(angle); return this; } removeAngle(angle) { for( let i = 0; i < this.__angle.length; i++) { if ( this.__angle[i] === angle) { this.__angle.splice(i, 1); } } return this.__angle; } get angle() { return this.__angle; } set direction(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } this.__direction = [direction]; return this; } addDirection(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set mass(mass = 0) { if (mass == null || mass < 0) { return null; } this.__mass = [mass]; return this; } addMass(mass = 0) { if (mass == null || mass < 0) { return null; } if (this.__mass == null) { this.__mass = []; } this.__mass.append(mass); return this; } removeMass(mass) { for( let i = 0; i < this.__mass.length; i++) { if ( this.__mass[i] === mass) { this.__mass.splice(i, 1); } } return this.__mass; } get mass() { return this.__mass; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set position(position = [0, 0, 0]) { this.__position = [position]; return this; } addPosition(position = [0, 0, 0]) { if (this.__position == null) { this.__position = []; } this.__position.append(position); return this; } removePosition(position) { for( let i = 0; i < this.__position.length; i++) { if ( this.__position[i] === position) { this.__position.splice(i, 1); } } return this.__position; } get position() { return this.__position; } set speed(speed = 0) { if (speed == null || speed < 0) { return null; } this.__speed = [speed]; return this; } addSpeed(speed = 0) { if (speed == null || speed < 0) { return null; } if (this.__speed == null) { this.__speed = []; } this.__speed.append(speed); return this; } removeSpeed(speed) { for( let i = 0; i < this.__speed.length; i++) { if ( this.__speed[i] === speed) { this.__speed.splice(i, 1); } } return this.__speed; } get speed() { return this.__speed; } set variation(variation = 0.25) { if (variation == null || variation < 0) { return null; } this.__variation = [variation]; return this; } addVariation(variation = 0.25) { if (variation == null || variation < 0) { return null; } if (this.__variation == null) { this.__variation = []; } this.__variation.append(variation); return this; } removeVariation(variation) { for( let i = 0; i < this.__variation.length; i++) { if ( this.__variation[i] === variation) { this.__variation.splice(i, 1); } } return this.__variation; } get variation() { return this.__variation; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__bounce = bounce; var contactNormal = kwargs["contactNormal"] || [0, 1, 0]; this.__contactNormal = contactNormal; var depth = kwargs["depth"] || 0; this.__depth = depth; var frictionCoefficients = kwargs["frictionCoefficients"] || [0, 0]; if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } this.__frictionCoefficients = frictionCoefficients; var frictionDirection = kwargs["frictionDirection"] || [0, 1, 0]; this.__frictionDirection = frictionDirection; var geometry1 = kwargs["geometry1"] || null; this.__geometry1 = geometry1; var geometry2 = kwargs["geometry2"] || null; this.__geometry2 = geometry2; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var minBounceSpeed = kwargs["minBounceSpeed"] || 0; if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } this.__minBounceSpeed = minBounceSpeed; var position = kwargs["position"] || [0, 0, 0]; this.__position = position; var slipCoefficients = kwargs["slipCoefficients"] || [0, 0]; this.__slipCoefficients = slipCoefficients; var softnessConstantForceMix = kwargs["softnessConstantForceMix"] || 0.0001; if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } this.__softnessConstantForceMix = softnessConstantForceMix; var softnessErrorCorrection = kwargs["softnessErrorCorrection"] || 0.8; if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } this.__softnessErrorCorrection = softnessErrorCorrection; var surfaceSpeed = kwargs["surfaceSpeed"] || [0, 0]; this.__surfaceSpeed = surfaceSpeed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set appliedParameters(appliedParameters = ["BOUNCE"]) { if ('"BOUNCE"' === appliedParameters) { } else if ('"USER_FRICTION"' === appliedParameters) { } else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) { } else if ('"ERROR_REDUCTION"' === appliedParameters) { } else if ('"CONSTANT_FORCE"' === appliedParameters) { } else if ('"SPEED-1"' === appliedParameters) { } else if ('"SPEED-2"' === appliedParameters) { } else if ('"SLIP-1"' === appliedParameters) { } else if ('"SLIP-2"' === appliedParameters) { } else { return null; } this.__appliedParameters = [appliedParameters]; return this; } addAppliedParameters(appliedParameters = ["BOUNCE"]) { if ('"BOUNCE"' === appliedParameters) { } else if ('"USER_FRICTION"' === appliedParameters) { } else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) { } else if ('"ERROR_REDUCTION"' === appliedParameters) { } else if ('"CONSTANT_FORCE"' === appliedParameters) { } else if ('"SPEED-1"' === appliedParameters) { } else if ('"SPEED-2"' === appliedParameters) { } else if ('"SLIP-1"' === appliedParameters) { } else if ('"SLIP-2"' === appliedParameters) { } else { return null; } if (this.__appliedParameters == null) { this.__appliedParameters = []; } this.__appliedParameters.append(appliedParameters); return this; } removeAppliedParameters(appliedParameters) { for( let i = 0; i < this.__appliedParameters.length; i++) { if ( this.__appliedParameters[i] === appliedParameters) { this.__appliedParameters.splice(i, 1); } } return this.__appliedParameters; } get appliedParameters() { return this.__appliedParameters; } set body1(body1 = null) { this.__body1 = [body1]; return this; } addBody1(body1 = null) { if (this.__body1 == null) { this.__body1 = []; } this.__body1.append(body1); return this; } removeBody1(body1) { for( let i = 0; i < this.__body1.length; i++) { if ( this.__body1[i] === body1) { this.__body1.splice(i, 1); } } return this.__body1; } get body1() { return this.__body1; } set body2(body2 = null) { this.__body2 = [body2]; return this; } addBody2(body2 = null) { if (this.__body2 == null) { this.__body2 = []; } this.__body2.append(body2); return this; } removeBody2(body2) { for( let i = 0; i < this.__body2.length; i++) { if ( this.__body2[i] === body2) { this.__body2.splice(i, 1); } } return this.__body2; } get body2() { return this.__body2; } set bounce(bounce = 0) { if (bounce == null || bounce < 0) { return null; } if (bounce == null || bounce > 1) { return null; } this.__bounce = [bounce]; return this; } addBounce(bounce = 0) { if (bounce == null || bounce < 0) { return null; } if (bounce == null || bounce > 1) { return null; } if (this.__bounce == null) { this.__bounce = []; } this.__bounce.append(bounce); return this; } removeBounce(bounce) { for( let i = 0; i < this.__bounce.length; i++) { if ( this.__bounce[i] === bounce) { this.__bounce.splice(i, 1); } } return this.__bounce; } get bounce() { return this.__bounce; } set contactNormal(contactNormal = [0, 1, 0]) { this.__contactNormal = [contactNormal]; return this; } addContactNormal(contactNormal = [0, 1, 0]) { if (this.__contactNormal == null) { this.__contactNormal = []; } this.__contactNormal.append(contactNormal); return this; } removeContactNormal(contactNormal) { for( let i = 0; i < this.__contactNormal.length; i++) { if ( this.__contactNormal[i] === contactNormal) { this.__contactNormal.splice(i, 1); } } return this.__contactNormal; } get contactNormal() { return this.__contactNormal; } set depth(depth = 0) { this.__depth = [depth]; return this; } addDepth(depth = 0) { if (this.__depth == null) { this.__depth = []; } this.__depth.append(depth); return this; } removeDepth(depth) { for( let i = 0; i < this.__depth.length; i++) { if ( this.__depth[i] === depth) { this.__depth.splice(i, 1); } } return this.__depth; } get depth() { return this.__depth; } set frictionCoefficients(frictionCoefficients = [0, 0]) { if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } this.__frictionCoefficients = [frictionCoefficients]; return this; } addFrictionCoefficients(frictionCoefficients = [0, 0]) { if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) { return null; } if (this.__frictionCoefficients == null) { this.__frictionCoefficients = []; } this.__frictionCoefficients.append(frictionCoefficients); return this; } removeFrictionCoefficients(frictionCoefficients) { for( let i = 0; i < this.__frictionCoefficients.length; i++) { if ( this.__frictionCoefficients[i] === frictionCoefficients) { this.__frictionCoefficients.splice(i, 1); } } return this.__frictionCoefficients; } get frictionCoefficients() { return this.__frictionCoefficients; } set frictionDirection(frictionDirection = [0, 1, 0]) { this.__frictionDirection = [frictionDirection]; return this; } addFrictionDirection(frictionDirection = [0, 1, 0]) { if (this.__frictionDirection == null) { this.__frictionDirection = []; } this.__frictionDirection.append(frictionDirection); return this; } removeFrictionDirection(frictionDirection) { for( let i = 0; i < this.__frictionDirection.length; i++) { if ( this.__frictionDirection[i] === frictionDirection) { this.__frictionDirection.splice(i, 1); } } return this.__frictionDirection; } get frictionDirection() { return this.__frictionDirection; } set geometry1(geometry1 = null) { this.__geometry1 = [geometry1]; return this; } addGeometry1(geometry1 = null) { if (this.__geometry1 == null) { this.__geometry1 = []; } this.__geometry1.append(geometry1); return this; } removeGeometry1(geometry1) { for( let i = 0; i < this.__geometry1.length; i++) { if ( this.__geometry1[i] === geometry1) { this.__geometry1.splice(i, 1); } } return this.__geometry1; } get geometry1() { return this.__geometry1; } set geometry2(geometry2 = null) { this.__geometry2 = [geometry2]; return this; } addGeometry2(geometry2 = null) { if (this.__geometry2 == null) { this.__geometry2 = []; } this.__geometry2.append(geometry2); return this; } removeGeometry2(geometry2) { for( let i = 0; i < this.__geometry2.length; i++) { if ( this.__geometry2[i] === geometry2) { this.__geometry2.splice(i, 1); } } return this.__geometry2; } get geometry2() { return this.__geometry2; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set minBounceSpeed(minBounceSpeed = 0) { if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } this.__minBounceSpeed = [minBounceSpeed]; return this; } addMinBounceSpeed(minBounceSpeed = 0) { if (minBounceSpeed == null || minBounceSpeed < 0) { return null; } if (this.__minBounceSpeed == null) { this.__minBounceSpeed = []; } this.__minBounceSpeed.append(minBounceSpeed); return this; } removeMinBounceSpeed(minBounceSpeed) { for( let i = 0; i < this.__minBounceSpeed.length; i++) { if ( this.__minBounceSpeed[i] === minBounceSpeed) { this.__minBounceSpeed.splice(i, 1); } } return this.__minBounceSpeed; } get minBounceSpeed() { return this.__minBounceSpeed; } set position(position = [0, 0, 0]) { this.__position = [position]; return this; } addPosition(position = [0, 0, 0]) { if (this.__position == null) { this.__position = []; } this.__position.append(position); return this; } removePosition(position) { for( let i = 0; i < this.__position.length; i++) { if ( this.__position[i] === position) { this.__position.splice(i, 1); } } return this.__position; } get position() { return this.__position; } set slipCoefficients(slipCoefficients = [0, 0]) { this.__slipCoefficients = [slipCoefficients]; return this; } addSlipCoefficients(slipCoefficients = [0, 0]) { if (this.__slipCoefficients == null) { this.__slipCoefficients = []; } this.__slipCoefficients.append(slipCoefficients); return this; } removeSlipCoefficients(slipCoefficients) { for( let i = 0; i < this.__slipCoefficients.length; i++) { if ( this.__slipCoefficients[i] === slipCoefficients) { this.__slipCoefficients.splice(i, 1); } } return this.__slipCoefficients; } get slipCoefficients() { return this.__slipCoefficients; } set softnessConstantForceMix(softnessConstantForceMix = 0.0001) { if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } this.__softnessConstantForceMix = [softnessConstantForceMix]; return this; } addSoftnessConstantForceMix(softnessConstantForceMix = 0.0001) { if (softnessConstantForceMix == null || softnessConstantForceMix < 0) { return null; } if (softnessConstantForceMix == null || softnessConstantForceMix > 1) { return null; } if (this.__softnessConstantForceMix == null) { this.__softnessConstantForceMix = []; } this.__softnessConstantForceMix.append(softnessConstantForceMix); return this; } removeSoftnessConstantForceMix(softnessConstantForceMix) { for( let i = 0; i < this.__softnessConstantForceMix.length; i++) { if ( this.__softnessConstantForceMix[i] === softnessConstantForceMix) { this.__softnessConstantForceMix.splice(i, 1); } } return this.__softnessConstantForceMix; } get softnessConstantForceMix() { return this.__softnessConstantForceMix; } set softnessErrorCorrection(softnessErrorCorrection = 0.8) { if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } this.__softnessErrorCorrection = [softnessErrorCorrection]; return this; } addSoftnessErrorCorrection(softnessErrorCorrection = 0.8) { if (softnessErrorCorrection == null || softnessErrorCorrection < 0) { return null; } if (softnessErrorCorrection == null || softnessErrorCorrection > 1) { return null; } if (this.__softnessErrorCorrection == null) { this.__softnessErrorCorrection = []; } this.__softnessErrorCorrection.append(softnessErrorCorrection); return this; } removeSoftnessErrorCorrection(softnessErrorCorrection) { for( let i = 0; i < this.__softnessErrorCorrection.length; i++) { if ( this.__softnessErrorCorrection[i] === softnessErrorCorrection) { this.__softnessErrorCorrection.splice(i, 1); } } return this.__softnessErrorCorrection; } get softnessErrorCorrection() { return this.__softnessErrorCorrection; } set surfaceSpeed(surfaceSpeed = [0, 0]) { this.__surfaceSpeed = [surfaceSpeed]; return this; } addSurfaceSpeed(surfaceSpeed = [0, 0]) { if (this.__surfaceSpeed == null) { this.__surfaceSpeed = []; } this.__surfaceSpeed.append(surfaceSpeed); return this; } removeSurfaceSpeed(surfaceSpeed) { for( let i = 0; i < this.__surfaceSpeed.length; i++) { if ( this.__surfaceSpeed[i] === surfaceSpeed) { this.__surfaceSpeed.splice(i, 1); } } return this.__surfaceSpeed; } get surfaceSpeed() { return this.__surfaceSpeed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1.5708) { return null; } this.__diskAngle = diskAngle; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var IS = kwargs["IS"] || null; this.__IS = IS; var Active = kwargs["Active"] || null; this.__Active = Active; var Over = kwargs["Over"] || null; this.__Over = Over; var maxAngle = kwargs["maxAngle"] || -1; if (maxAngle == null || maxAngle <= -6.2832) { return null; } if (maxAngle == null || maxAngle >= 6.2832) { return null; } this.__maxAngle = maxAngle; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var minAngle = kwargs["minAngle"] || 0; if (minAngle == null || minAngle <= -6.2832) { return null; } if (minAngle == null || minAngle >= 6.2832) { return null; } this.__minAngle = minAngle; var offset = kwargs["offset"] || 0; this.__offset = offset; var rotation_changed = kwargs["rotation_changed"] || null; this.__rotation_changed = rotation_changed; var trackPoint_changed = kwargs["trackPoint_changed"] || null; this.__trackPoint_changed = trackPoint_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set autoOffset(autoOffset = true) { this.__autoOffset = [autoOffset]; return this; } addAutoOffset(autoOffset = true) { if (this.__autoOffset == null) { this.__autoOffset = []; } this.__autoOffset.append(autoOffset); return this; } removeAutoOffset(autoOffset) { for( let i = 0; i < this.__autoOffset.length; i++) { if ( this.__autoOffset[i] === autoOffset) { this.__autoOffset.splice(i, 1); } } return this.__autoOffset; } get isAutoOffset() { return this.__autoOffset; } set axisRotation(axisRotation = [0, 1, 0, 0]) { this.__axisRotation = [axisRotation]; return this; } addAxisRotation(axisRotation = [0, 1, 0, 0]) { if (this.__axisRotation == null) { this.__axisRotation = []; } this.__axisRotation.append(axisRotation); return this; } removeAxisRotation(axisRotation) { for( let i = 0; i < this.__axisRotation.length; i++) { if ( this.__axisRotation[i] === axisRotation) { this.__axisRotation.splice(i, 1); } } return this.__axisRotation; } get axisRotation() { return this.__axisRotation; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } set diskAngle(diskAngle = 0.26179167) { if (diskAngle == null || diskAngle < 0) { return null; } if (diskAngle == null || diskAngle > 1.5708) { return null; } this.__diskAngle = [diskAngle]; return this; } addDiskAngle(diskAngle = 0.26179167) { if (diskAngle == null || diskAngle < 0) { return null; } if (diskAngle == null || diskAngle > 1.5708) { return null; } if (this.__diskAngle == null) { this.__diskAngle = []; } this.__diskAngle.append(diskAngle); return this; } removeDiskAngle(diskAngle) { for( let i = 0; i < this.__diskAngle.length; i++) { if ( this.__diskAngle[i] === diskAngle) { this.__diskAngle.splice(i, 1); } } return this.__diskAngle; } get diskAngle() { return this.__diskAngle; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } get isOver() { return this.__Over; } set maxAngle(maxAngle = -1) { if (maxAngle == null || maxAngle <= -6.2832) { return null; } if (maxAngle == null || maxAngle >= 6.2832) { return null; } this.__maxAngle = [maxAngle]; return this; } addMaxAngle(maxAngle = -1) { if (maxAngle == null || maxAngle <= -6.2832) { return null; } if (maxAngle == null || maxAngle >= 6.2832) { return null; } if (this.__maxAngle == null) { this.__maxAngle = []; } this.__maxAngle.append(maxAngle); return this; } removeMaxAngle(maxAngle) { for( let i = 0; i < this.__maxAngle.length; i++) { if ( this.__maxAngle[i] === maxAngle) { this.__maxAngle.splice(i, 1); } } return this.__maxAngle; } get maxAngle() { return this.__maxAngle; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set minAngle(minAngle = 0) { if (minAngle == null || minAngle <= -6.2832) { return null; } if (minAngle == null || minAngle >= 6.2832) { return null; } this.__minAngle = [minAngle]; return this; } addMinAngle(minAngle = 0) { if (minAngle == null || minAngle <= -6.2832) { return null; } if (minAngle == null || minAngle >= 6.2832) { return null; } if (this.__minAngle == null) { this.__minAngle = []; } this.__minAngle.append(minAngle); return this; } removeMinAngle(minAngle) { for( let i = 0; i < this.__minAngle.length; i++) { if ( this.__minAngle[i] === minAngle) { this.__minAngle.splice(i, 1); } } return this.__minAngle; } get minAngle() { return this.__minAngle; } set offset(offset = 0) { this.__offset = [offset]; return this; } addOffset(offset = 0) { if (this.__offset == null) { this.__offset = []; } this.__offset.append(offset); return this; } removeOffset(offset) { for( let i = 0; i < this.__offset.length; i++) { if ( this.__offset[i] === offset) { this.__offset.splice(i, 1); } } return this.__offset; } get offset() { return this.__offset; } removerotation_changed(rotation_changed) { for( let i = 0; i < this.__rotation_changed.length; i++) { if ( this.__rotation_changed[i] === rotation_changed) { this.__rotation_changed.splice(i, 1); } } return this.__rotation_changed; } get rotation_changed() { return this.__rotation_changed; } removetrackPoint_changed(trackPoint_changed) { for( let i = 0; i < this.__trackPoint_changed.length; i++) { if ( this.__trackPoint_changed[i] === trackPoint_changed) { this.__trackPoint_changed.splice(i, 1); } } return this.__trackPoint_changed; } get trackPoint_changed() { return this.__trackPoint_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var color = kwargs["color"] || [1, 1, 1]; if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = color; var direction = kwargs["direction"] || [0, 0, -1]; this.__direction = direction; var global_ = kwargs["global_"] || false; this.__global_ = global_; var intensity = kwargs["intensity"] || 1; if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = intensity; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var on = kwargs["on"] || true; this.__on = on; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set direction(direction = [0, 0, -1]) { this.__direction = [direction]; return this; } addDirection(direction = [0, 0, -1]) { if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set global(global_ = false) { this.__global_ = [global_]; return this; } addGlobal(global_ = false) { if (this.__global_ == null) { this.__global_ = []; } this.__global_.append(global_); return this; } removeGlobal(global_) { for( let i = 0; i < this.__global_.length; i++) { if ( this.__global_[i] === global_) { this.__global_.splice(i, 1); } } return this.__global_; } get isGlobal() { return this.__global_; } set intensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = [intensity]; return this; } addIntensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } if (this.__intensity == null) { this.__intensity = []; } this.__intensity.append(intensity); return this; } removeIntensity(intensity) { for( let i = 0; i < this.__intensity.length; i++) { if ( this.__intensity[i] === intensity) { this.__intensity.splice(i, 1); } } return this.__intensity; } get intensity() { return this.__intensity; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set on(on = true) { this.__on = [on]; return this; } addOn(on = true) { if (this.__on == null) { this.__on = []; } this.__on.append(on); return this; } removeOn(on) { for( let i = 0; i < this.__on.length; i++) { if ( this.__on[i] === on) { this.__on.splice(i, 1); } } return this.__on; } get isOn() { return this.__on; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } toXMLNode(attrName) { let str = '' str += ' 255) { return null; } this.__category = category; var country = kwargs["country"] || 0; if (country == null || country < 0) { return null; } if (country == null || country > 65535) { return null; } this.__country = country; var domain = kwargs["domain"] || 0; if (domain == null || domain < 0) { return null; } if (domain == null || domain > 255) { return null; } this.__domain = domain; var extra = kwargs["extra"] || 0; if (extra == null || extra < 0) { return null; } if (extra == null || extra > 255) { return null; } this.__extra = extra; var IS = kwargs["IS"] || null; this.__IS = IS; var kind = kwargs["kind"] || 0; if (kind == null || kind < 0) { return null; } if (kind == null || kind > 255) { return null; } this.__kind = kind; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var specific = kwargs["specific"] || 0; if (specific == null || specific < 0) { return null; } if (specific == null || specific > 255) { return null; } this.__specific = specific; var subcategory = kwargs["subcategory"] || 0; if (subcategory == null || subcategory < 0) { return null; } if (subcategory == null || subcategory > 255) { return null; } this.__subcategory = subcategory; var url = kwargs["url"] || null; this.__url = url; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set url(url = null) { this.__url = [url]; return this; } addUrl(url = null) { if (this.__url == null) { this.__url = []; } this.__url.append(url); return this; } removeUrl(url) { for( let i = 0; i < this.__url.length; i++) { if ( this.__url[i] === url) { this.__url.splice(i, 1); } } return this.__url; } get url() { return this.__url; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__edgeColor = edgeColor; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var gradientThreshold = kwargs["gradientThreshold"] || 0.4; if (gradientThreshold == null || gradientThreshold < 0) { return null; } if (gradientThreshold == null || gradientThreshold > 3.1416) { return null; } this.__gradientThreshold = gradientThreshold; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var surfaceNormals = kwargs["surfaceNormals"] || null; this.__surfaceNormals = surfaceNormals; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set edgeColor(edgeColor = [0, 0, 0, 1]) { if (edgeColor == null || edgeColor < 0) { return null; } if (edgeColor == null || edgeColor > 1) { return null; } this.__edgeColor = [edgeColor]; return this; } addEdgeColor(edgeColor = [0, 0, 0, 1]) { if (edgeColor == null || edgeColor < 0) { return null; } if (edgeColor == null || edgeColor > 1) { return null; } if (this.__edgeColor == null) { this.__edgeColor = []; } this.__edgeColor.append(edgeColor); return this; } removeEdgeColor(edgeColor) { for( let i = 0; i < this.__edgeColor.length; i++) { if ( this.__edgeColor[i] === edgeColor) { this.__edgeColor.splice(i, 1); } } return this.__edgeColor; } get edgeColor() { return this.__edgeColor; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set gradientThreshold(gradientThreshold = 0.4) { if (gradientThreshold == null || gradientThreshold < 0) { return null; } if (gradientThreshold == null || gradientThreshold > 3.1416) { return null; } this.__gradientThreshold = [gradientThreshold]; return this; } addGradientThreshold(gradientThreshold = 0.4) { if (gradientThreshold == null || gradientThreshold < 0) { return null; } if (gradientThreshold == null || gradientThreshold > 3.1416) { return null; } if (this.__gradientThreshold == null) { this.__gradientThreshold = []; } this.__gradientThreshold.append(gradientThreshold); return this; } removeGradientThreshold(gradientThreshold) { for( let i = 0; i < this.__gradientThreshold.length; i++) { if ( this.__gradientThreshold[i] === gradientThreshold) { this.__gradientThreshold.splice(i, 1); } } return this.__gradientThreshold; } get gradientThreshold() { return this.__gradientThreshold; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set surfaceNormals(surfaceNormals = null) { this.__surfaceNormals = [surfaceNormals]; return this; } addSurfaceNormals(surfaceNormals = null) { if (this.__surfaceNormals == null) { this.__surfaceNormals = []; } this.__surfaceNormals.append(surfaceNormals); return this; } removeSurfaceNormals(surfaceNormals) { for( let i = 0; i < this.__surfaceNormals.length; i++) { if ( this.__surfaceNormals[i] === surfaceNormals) { this.__surfaceNormals.splice(i, 1); } } return this.__surfaceNormals; } get surfaceNormals() { return this.__surfaceNormals; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__hatchColor = hatchColor; var hatched = kwargs["hatched"] || true; this.__hatched = hatched; var hatchStyle = kwargs["hatchStyle"] || 1; this.__hatchStyle = hatchStyle; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set filled(filled = true) { this.__filled = [filled]; return this; } addFilled(filled = true) { if (this.__filled == null) { this.__filled = []; } this.__filled.append(filled); return this; } removeFilled(filled) { for( let i = 0; i < this.__filled.length; i++) { if ( this.__filled[i] === filled) { this.__filled.splice(i, 1); } } return this.__filled; } get isFilled() { return this.__filled; } set hatchColor(hatchColor = [1, 1, 1]) { if (hatchColor == null || hatchColor.length <= 0 || Math.min(hatchColor) < 0) { return null; } if (hatchColor == null || hatchColor.length <= 0 || Math.max(hatchColor) > 1) { return null; } this.__hatchColor = [hatchColor]; return this; } addHatchColor(hatchColor = [1, 1, 1]) { if (hatchColor == null || hatchColor.length <= 0 || Math.min(hatchColor) < 0) { return null; } if (hatchColor == null || hatchColor.length <= 0 || Math.max(hatchColor) > 1) { return null; } if (this.__hatchColor == null) { this.__hatchColor = []; } this.__hatchColor.append(hatchColor); return this; } removeHatchColor(hatchColor) { for( let i = 0; i < this.__hatchColor.length; i++) { if ( this.__hatchColor[i] === hatchColor) { this.__hatchColor.splice(i, 1); } } return this.__hatchColor; } get hatchColor() { return this.__hatchColor; } set hatched(hatched = true) { this.__hatched = [hatched]; return this; } addHatched(hatched = true) { if (this.__hatched == null) { this.__hatched = []; } this.__hatched.append(hatched); return this; } removeHatched(hatched) { for( let i = 0; i < this.__hatched.length; i++) { if ( this.__hatched[i] === hatched) { this.__hatched.splice(i, 1); } } return this.__hatched; } get isHatched() { return this.__hatched; } set hatchStyle(hatchStyle = 1) { this.__hatchStyle = [hatchStyle]; return this; } addHatchStyle(hatchStyle = 1) { if (this.__hatchStyle == null) { this.__hatchStyle = []; } this.__hatchStyle.append(hatchStyle); return this; } removeHatchStyle(hatchStyle) { for( let i = 0; i < this.__hatchStyle.length; i++) { if ( this.__hatchStyle[i] === hatchStyle) { this.__hatchStyle.splice(i, 1); } } return this.__hatchStyle; } get hatchStyle() { return this.__hatchStyle; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 4) { return null; } this.__numComponents = numComponents; var value = kwargs["value"] || null; this.__value = value; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set name(name = null) { this.__name = [name]; return this; } addName(name = null) { if (this.__name == null) { this.__name = []; } this.__name.append(name); return this; } removeName(name) { for( let i = 0; i < this.__name.length; i++) { if ( this.__name[i] === name) { this.__name.splice(i, 1); } } return this.__name; } get name() { return this.__name; } set value(value = null) { this.__value = [value]; return this; } addValue(value = null) { if (this.__value == null) { this.__value = []; } this.__value.append(value); return this; } removeValue(value) { for( let i = 0; i < this.__value.length; i++) { if ( this.__value[i] === value) { this.__value.splice(i, 1); } } return this.__value; } get value() { return this.__value; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__color = color; var fogType = kwargs["fogType"] || "LINEAR"; if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = fogType; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var bind = kwargs["bind"] || null; this.__bind = bind; var visibilityRange = kwargs["visibilityRange"] || 0; if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = visibilityRange; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set fogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = [fogType]; return this; } addFogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } if (this.__fogType == null) { this.__fogType = []; } this.__fogType.append(fogType); return this; } removeFogType(fogType) { for( let i = 0; i < this.__fogType.length; i++) { if ( this.__fogType[i] === fogType) { this.__fogType.splice(i, 1); } } return this.__fogType; } get fogType() { return this.__fogType; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set visibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = [visibilityRange]; return this; } addVisibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } if (this.__visibilityRange == null) { this.__visibilityRange = []; } this.__visibilityRange.append(visibilityRange); return this; } removeVisibilityRange(visibilityRange) { for( let i = 0; i < this.__visibilityRange.length; i++) { if ( this.__visibilityRange[i] === visibilityRange) { this.__visibilityRange.splice(i, 1); } } return this.__visibilityRange; } get visibilityRange() { return this.__visibilityRange; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__depth = depth; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set depth(depth = null) { if (depth == null || depth.length <= 0 || Math.min(depth) < 0) { return null; } if (depth == null || depth.length <= 0 || Math.max(depth) > 1) { return null; } this.__depth = [depth]; return this; } addDepth(depth = null) { if (depth == null || depth.length <= 0 || Math.min(depth) < 0) { return null; } if (depth == null || depth.length <= 0 || Math.max(depth) > 1) { return null; } if (this.__depth == null) { this.__depth = []; } this.__depth.append(depth); return this; } removeDepth(depth) { for( let i = 0; i < this.__depth.length; i++) { if ( this.__depth[i] === depth) { this.__depth.splice(i, 1); } } return this.__depth; } get depth() { return this.__depth; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__level_changed = level_changed; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var range = kwargs["range"] || 10; if (range == null || range < 0) { return null; } this.__range = range; var rootNode = kwargs["rootNode"] || null; this.__rootNode = rootNode; var rootUrl = kwargs["rootUrl"] || null; this.__rootUrl = rootUrl; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } removeChildren(children) { for( let i = 0; i < this.__children.length; i++) { if ( this.__children[i] === children) { this.__children.splice(i, 1); } } return this.__children; } get children() { return this.__children; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } removelevel_changed(level_changed) { for( let i = 0; i < this.__level_changed.length; i++) { if ( this.__level_changed[i] === level_changed) { this.__level_changed.splice(i, 1); } } return this.__level_changed; } get level_changed() { return this.__level_changed; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += '= 3.1416) { return null; } this.__fieldOfView = fieldOfView; var geoOrigin = kwargs["geoOrigin"] || null; this.__geoOrigin = geoOrigin; var geoSystem = kwargs["geoSystem"] || ["GD", "WE"]; this.__geoSystem = geoSystem; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var jump = kwargs["jump"] || true; this.__jump = jump; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var orientation = kwargs["orientation"] || [0, 0, 1, 0]; this.__orientation = orientation; var position = kwargs["position"] || [0, 0, 100000]; this.__position = position; var retainUserOffsets = kwargs["retainUserOffsets"] || false; this.__retainUserOffsets = retainUserOffsets; var bind = kwargs["bind"] || null; this.__bind = bind; var speedFactor = kwargs["speedFactor"] || 1.0; if (speedFactor == null || speedFactor < 0) { return null; } this.__speedFactor = speedFactor; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set centerOfRotation(centerOfRotation = [0, 0, 0]) { this.__centerOfRotation = [centerOfRotation]; return this; } addCenterOfRotation(centerOfRotation = [0, 0, 0]) { if (this.__centerOfRotation == null) { this.__centerOfRotation = []; } this.__centerOfRotation.append(centerOfRotation); return this; } removeCenterOfRotation(centerOfRotation) { for( let i = 0; i < this.__centerOfRotation.length; i++) { if ( this.__centerOfRotation[i] === centerOfRotation) { this.__centerOfRotation.splice(i, 1); } } return this.__centerOfRotation; } get centerOfRotation() { return this.__centerOfRotation; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } set fieldOfView(fieldOfView = 0.7854) { if (fieldOfView == null || fieldOfView <= 0) { return null; } if (fieldOfView == null || fieldOfView >= 3.1416) { return null; } this.__fieldOfView = [fieldOfView]; return this; } addFieldOfView(fieldOfView = 0.7854) { if (fieldOfView == null || fieldOfView <= 0) { return null; } if (fieldOfView == null || fieldOfView >= 3.1416) { return null; } if (this.__fieldOfView == null) { this.__fieldOfView = []; } this.__fieldOfView.append(fieldOfView); return this; } removeFieldOfView(fieldOfView) { for( let i = 0; i < this.__fieldOfView.length; i++) { if ( this.__fieldOfView[i] === fieldOfView) { this.__fieldOfView.splice(i, 1); } } return this.__fieldOfView; } get fieldOfView() { return this.__fieldOfView; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set jump(jump = true) { this.__jump = [jump]; return this; } addJump(jump = true) { if (this.__jump == null) { this.__jump = []; } this.__jump.append(jump); return this; } removeJump(jump) { for( let i = 0; i < this.__jump.length; i++) { if ( this.__jump[i] === jump) { this.__jump.splice(i, 1); } } return this.__jump; } get isJump() { return this.__jump; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set orientation(orientation = [0, 0, 1, 0]) { this.__orientation = [orientation]; return this; } addOrientation(orientation = [0, 0, 1, 0]) { if (this.__orientation == null) { this.__orientation = []; } this.__orientation.append(orientation); return this; } removeOrientation(orientation) { for( let i = 0; i < this.__orientation.length; i++) { if ( this.__orientation[i] === orientation) { this.__orientation.splice(i, 1); } } return this.__orientation; } get orientation() { return this.__orientation; } set position(position = [0, 0, 100000]) { this.__position = [position]; return this; } addPosition(position = [0, 0, 100000]) { if (this.__position == null) { this.__position = []; } this.__position.append(position); return this; } removePosition(position) { for( let i = 0; i < this.__position.length; i++) { if ( this.__position[i] === position) { this.__position.splice(i, 1); } } return this.__position; } get position() { return this.__position; } set retainUserOffsets(retainUserOffsets = false) { this.__retainUserOffsets = [retainUserOffsets]; return this; } addRetainUserOffsets(retainUserOffsets = false) { if (this.__retainUserOffsets == null) { this.__retainUserOffsets = []; } this.__retainUserOffsets.append(retainUserOffsets); return this; } removeRetainUserOffsets(retainUserOffsets) { for( let i = 0; i < this.__retainUserOffsets.length; i++) { if ( this.__retainUserOffsets[i] === retainUserOffsets) { this.__retainUserOffsets.splice(i, 1); } } return this.__retainUserOffsets; } get isRetainUserOffsets() { return this.__retainUserOffsets; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 4) { return null; } this.__loa = loa; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var motions = kwargs["motions"] || null; this.__motions = motions; var name = kwargs["name"] || null; this.__name = name; var rotation = kwargs["rotation"] || [0, 0, 1, 0]; this.__rotation = rotation; var scale = kwargs["scale"] || [1, 1, 1]; if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) { return null; } this.__scale = scale; var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0]; this.__scaleOrientation = scaleOrientation; var segments = kwargs["segments"] || null; this.__segments = segments; var sites = kwargs["sites"] || null; this.__sites = sites; var skeletalConfiguration = kwargs["skeletalConfiguration"] || "BASIC"; this.__skeletalConfiguration = skeletalConfiguration; var skeleton = kwargs["skeleton"] || null; this.__skeleton = skeleton; var skin = kwargs["skin"] || null; this.__skin = skin; var skinBindingCoords = kwargs["skinBindingCoords"] || null; this.__skinBindingCoords = skinBindingCoords; var skinBindingNormals = kwargs["skinBindingNormals"] || null; this.__skinBindingNormals = skinBindingNormals; var skinCoord = kwargs["skinCoord"] || null; this.__skinCoord = skinCoord; var skinNormal = kwargs["skinNormal"] || null; this.__skinNormal = skinNormal; var translation = kwargs["translation"] || [0, 0, 0]; this.__translation = translation; var version = kwargs["version"] || "2.0"; if ('1.0' === version) { } else if ('1.1' === version) { } else if ('2.0' === version) { } else { return null; } this.__version = version; var viewpoints = kwargs["viewpoints"] || null; this.__viewpoints = viewpoints; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set center(center = [0, 0, 0]) { this.__center = [center]; return this; } addCenter(center = [0, 0, 0]) { if (this.__center == null) { this.__center = []; } this.__center.append(center); return this; } removeCenter(center) { for( let i = 0; i < this.__center.length; i++) { if ( this.__center[i] === center) { this.__center.splice(i, 1); } } return this.__center; } get center() { return this.__center; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set info(info = null) { this.__info = [info]; return this; } addInfo(info = null) { if (this.__info == null) { this.__info = []; } this.__info.append(info); return this; } removeInfo(info) { for( let i = 0; i < this.__info.length; i++) { if ( this.__info[i] === info) { this.__info.splice(i, 1); } } return this.__info; } get info() { return this.__info; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set jointBindingPositions(jointBindingPositions = [0, 0, 0]) { this.__jointBindingPositions = [jointBindingPositions]; return this; } addJointBindingPositions(jointBindingPositions = [0, 0, 0]) { if (this.__jointBindingPositions == null) { this.__jointBindingPositions = []; } this.__jointBindingPositions.append(jointBindingPositions); return this; } removeJointBindingPositions(jointBindingPositions) { for( let i = 0; i < this.__jointBindingPositions.length; i++) { if ( this.__jointBindingPositions[i] === jointBindingPositions) { this.__jointBindingPositions.splice(i, 1); } } return this.__jointBindingPositions; } get jointBindingPositions() { return this.__jointBindingPositions; } set jointBindingRotations(jointBindingRotations = [0, 0, 1, 0]) { this.__jointBindingRotations = [jointBindingRotations]; return this; } addJointBindingRotations(jointBindingRotations = [0, 0, 1, 0]) { if (this.__jointBindingRotations == null) { this.__jointBindingRotations = []; } this.__jointBindingRotations.append(jointBindingRotations); return this; } removeJointBindingRotations(jointBindingRotations) { for( let i = 0; i < this.__jointBindingRotations.length; i++) { if ( this.__jointBindingRotations[i] === jointBindingRotations) { this.__jointBindingRotations.splice(i, 1); } } return this.__jointBindingRotations; } get jointBindingRotations() { return this.__jointBindingRotations; } set jointBindingScales(jointBindingScales = [0, 0, 0]) { this.__jointBindingScales = [jointBindingScales]; return this; } addJointBindingScales(jointBindingScales = [0, 0, 0]) { if (this.__jointBindingScales == null) { this.__jointBindingScales = []; } this.__jointBindingScales.append(jointBindingScales); return this; } removeJointBindingScales(jointBindingScales) { for( let i = 0; i < this.__jointBindingScales.length; i++) { if ( this.__jointBindingScales[i] === jointBindingScales) { this.__jointBindingScales.splice(i, 1); } } return this.__jointBindingScales; } get jointBindingScales() { return this.__jointBindingScales; } set joints(joints = null) { this.__joints = [joints]; return this; } addJoints(joints = null) { if (this.__joints == null) { this.__joints = []; } this.__joints.append(joints); return this; } removeJoints(joints) { for( let i = 0; i < this.__joints.length; i++) { if ( this.__joints[i] === joints) { this.__joints.splice(i, 1); } } return this.__joints; } get joints() { return this.__joints; } set loa(loa = -1) { if (loa == null || loa < -1) { return null; } if (loa == null || loa > 4) { return null; } this.__loa = [loa]; return this; } addLoa(loa = -1) { if (loa == null || loa < -1) { return null; } if (loa == null || loa > 4) { return null; } if (this.__loa == null) { this.__loa = []; } this.__loa.append(loa); return this; } removeLoa(loa) { for( let i = 0; i < this.__loa.length; i++) { if ( this.__loa[i] === loa) { this.__loa.splice(i, 1); } } return this.__loa; } get loa() { return this.__loa; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set motions(motions = null) { this.__motions = [motions]; return this; } addMotions(motions = null) { if (this.__motions == null) { this.__motions = []; } this.__motions.append(motions); return this; } removeMotions(motions) { for( let i = 0; i < this.__motions.length; i++) { if ( this.__motions[i] === motions) { this.__motions.splice(i, 1); } } return this.__motions; } get motions() { return this.__motions; } set name(name = null) { this.__name = [name]; return this; } addName(name = null) { if (this.__name == null) { this.__name = []; } this.__name.append(name); return this; } removeName(name) { for( let i = 0; i < this.__name.length; i++) { if ( this.__name[i] === name) { this.__name.splice(i, 1); } } return this.__name; } get name() { return this.__name; } set rotation(rotation = [0, 0, 1, 0]) { this.__rotation = [rotation]; return this; } addRotation(rotation = [0, 0, 1, 0]) { if (this.__rotation == null) { this.__rotation = []; } this.__rotation.append(rotation); return this; } removeRotation(rotation) { for( let i = 0; i < this.__rotation.length; i++) { if ( this.__rotation[i] === rotation) { this.__rotation.splice(i, 1); } } return this.__rotation; } get rotation() { return this.__rotation; } set scale(scale = [1, 1, 1]) { if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) { return null; } this.__scale = [scale]; return this; } addScale(scale = [1, 1, 1]) { if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) { return null; } if (this.__scale == null) { this.__scale = []; } this.__scale.append(scale); return this; } removeScale(scale) { for( let i = 0; i < this.__scale.length; i++) { if ( this.__scale[i] === scale) { this.__scale.splice(i, 1); } } return this.__scale; } get scale() { return this.__scale; } set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) { this.__scaleOrientation = [scaleOrientation]; return this; } addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) { if (this.__scaleOrientation == null) { this.__scaleOrientation = []; } this.__scaleOrientation.append(scaleOrientation); return this; } removeScaleOrientation(scaleOrientation) { for( let i = 0; i < this.__scaleOrientation.length; i++) { if ( this.__scaleOrientation[i] === scaleOrientation) { this.__scaleOrientation.splice(i, 1); } } return this.__scaleOrientation; } get scaleOrientation() { return this.__scaleOrientation; } set segments(segments = null) { this.__segments = [segments]; return this; } addSegments(segments = null) { if (this.__segments == null) { this.__segments = []; } this.__segments.append(segments); return this; } removeSegments(segments) { for( let i = 0; i < this.__segments.length; i++) { if ( this.__segments[i] === segments) { this.__segments.splice(i, 1); } } return this.__segments; } get segments() { return this.__segments; } set sites(sites = null) { this.__sites = [sites]; return this; } addSites(sites = null) { if (this.__sites == null) { this.__sites = []; } this.__sites.append(sites); return this; } removeSites(sites) { for( let i = 0; i < this.__sites.length; i++) { if ( this.__sites[i] === sites) { this.__sites.splice(i, 1); } } return this.__sites; } get sites() { return this.__sites; } set skeletalConfiguration(skeletalConfiguration = "BASIC") { this.__skeletalConfiguration = [skeletalConfiguration]; return this; } addSkeletalConfiguration(skeletalConfiguration = "BASIC") { if (this.__skeletalConfiguration == null) { this.__skeletalConfiguration = []; } this.__skeletalConfiguration.append(skeletalConfiguration); return this; } removeSkeletalConfiguration(skeletalConfiguration) { for( let i = 0; i < this.__skeletalConfiguration.length; i++) { if ( this.__skeletalConfiguration[i] === skeletalConfiguration) { this.__skeletalConfiguration.splice(i, 1); } } return this.__skeletalConfiguration; } get skeletalConfiguration() { return this.__skeletalConfiguration; } set skeleton(skeleton = null) { this.__skeleton = [skeleton]; return this; } addSkeleton(skeleton = null) { if (this.__skeleton == null) { this.__skeleton = []; } this.__skeleton.append(skeleton); return this; } removeSkeleton(skeleton) { for( let i = 0; i < this.__skeleton.length; i++) { if ( this.__skeleton[i] === skeleton) { this.__skeleton.splice(i, 1); } } return this.__skeleton; } get skeleton() { return this.__skeleton; } set skin(skin = null) { this.__skin = [skin]; return this; } addSkin(skin = null) { if (this.__skin == null) { this.__skin = []; } this.__skin.append(skin); return this; } removeSkin(skin) { for( let i = 0; i < this.__skin.length; i++) { if ( this.__skin[i] === skin) { this.__skin.splice(i, 1); } } return this.__skin; } get skin() { return this.__skin; } set skinBindingCoords(skinBindingCoords = null) { this.__skinBindingCoords = [skinBindingCoords]; return this; } addSkinBindingCoords(skinBindingCoords = null) { if (this.__skinBindingCoords == null) { this.__skinBindingCoords = []; } this.__skinBindingCoords.append(skinBindingCoords); return this; } removeSkinBindingCoords(skinBindingCoords) { for( let i = 0; i < this.__skinBindingCoords.length; i++) { if ( this.__skinBindingCoords[i] === skinBindingCoords) { this.__skinBindingCoords.splice(i, 1); } } return this.__skinBindingCoords; } get skinBindingCoords() { return this.__skinBindingCoords; } set skinBindingNormals(skinBindingNormals = null) { this.__skinBindingNormals = [skinBindingNormals]; return this; } addSkinBindingNormals(skinBindingNormals = null) { if (this.__skinBindingNormals == null) { this.__skinBindingNormals = []; } this.__skinBindingNormals.append(skinBindingNormals); return this; } removeSkinBindingNormals(skinBindingNormals) { for( let i = 0; i < this.__skinBindingNormals.length; i++) { if ( this.__skinBindingNormals[i] === skinBindingNormals) { this.__skinBindingNormals.splice(i, 1); } } return this.__skinBindingNormals; } get skinBindingNormals() { return this.__skinBindingNormals; } set skinCoord(skinCoord = null) { this.__skinCoord = [skinCoord]; return this; } addSkinCoord(skinCoord = null) { if (this.__skinCoord == null) { this.__skinCoord = []; } this.__skinCoord.append(skinCoord); return this; } removeSkinCoord(skinCoord) { for( let i = 0; i < this.__skinCoord.length; i++) { if ( this.__skinCoord[i] === skinCoord) { this.__skinCoord.splice(i, 1); } } return this.__skinCoord; } get skinCoord() { return this.__skinCoord; } set skinNormal(skinNormal = null) { this.__skinNormal = [skinNormal]; return this; } addSkinNormal(skinNormal = null) { if (this.__skinNormal == null) { this.__skinNormal = []; } this.__skinNormal.append(skinNormal); return this; } removeSkinNormal(skinNormal) { for( let i = 0; i < this.__skinNormal.length; i++) { if ( this.__skinNormal[i] === skinNormal) { this.__skinNormal.splice(i, 1); } } return this.__skinNormal; } get skinNormal() { return this.__skinNormal; } set translation(translation = [0, 0, 0]) { this.__translation = [translation]; return this; } addTranslation(translation = [0, 0, 0]) { if (this.__translation == null) { this.__translation = []; } this.__translation.append(translation); return this; } removeTranslation(translation) { for( let i = 0; i < this.__translation.length; i++) { if ( this.__translation[i] === translation) { this.__translation.splice(i, 1); } } return this.__translation; } get translation() { return this.__translation; } set version(version = "2.0") { if ('1.0' === version) { } else if ('1.1' === version) { } else if ('2.0' === version) { } else { return null; } this.__version = [version]; return this; } addVersion(version = "2.0") { if ('1.0' === version) { } else if ('1.1' === version) { } else if ('2.0' === version) { } else { return null; } if (this.__version == null) { this.__version = []; } this.__version.append(version); return this; } removeVersion(version) { for( let i = 0; i < this.__version.length; i++) { if ( this.__version[i] === version) { this.__version.splice(i, 1); } } return this.__version; } get version() { return this.__version; } set viewpoints(viewpoints = null) { this.__viewpoints = [viewpoints]; return this; } addViewpoints(viewpoints = null) { if (this.__viewpoints == null) { this.__viewpoints = []; } this.__viewpoints.append(viewpoints); return this; } removeViewpoints(viewpoints) { for( let i = 0; i < this.__viewpoints.length; i++) { if ( this.__viewpoints[i] === viewpoints) { this.__viewpoints.splice(i, 1); } } return this.__viewpoints; } get viewpoints() { return this.__viewpoints; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__stiffness = stiffness; var translation = kwargs["translation"] || [0, 0, 0]; this.__translation = translation; var ulimit = kwargs["ulimit"] || [0, 0, 0]; this.__ulimit = ulimit; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } addChildren(children_ = null) { if (this.__children_ == null) { this.__children_ = []; } this.__children_.append(children_); return this; } set center(center = [0, 0, 0]) { this.__center = [center]; return this; } addCenter(center = [0, 0, 0]) { if (this.__center == null) { this.__center = []; } this.__center.append(center); return this; } removeCenter(center) { for( let i = 0; i < this.__center.length; i++) { if ( this.__center[i] === center) { this.__center.splice(i, 1); } } return this.__center; } get center() { return this.__center; } set children(children = null) { this.__children = [children]; return this; } addChildren(children = null) { if (this.__children == null) { this.__children = []; } this.__children.append(children); return this; } removeChildren(children) { for( let i = 0; i < this.__children.length; i++) { if ( this.__children[i] === children) { this.__children.splice(i, 1); } } return this.__children; } get children() { return this.__children; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } set displacers(displacers = null) { this.__displacers = [displacers]; return this; } addDisplacers(displacers = null) { if (this.__displacers == null) { this.__displacers = []; } this.__displacers.append(displacers); return this; } removeDisplacers(displacers) { for( let i = 0; i < this.__displacers.length; i++) { if ( this.__displacers[i] === displacers) { this.__displacers.splice(i, 1); } } return this.__displacers; } get displacers() { return this.__displacers; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set limitOrientation(limitOrientation = [0, 0, 1, 0]) { this.__limitOrientation = [limitOrientation]; return this; } addLimitOrientation(limitOrientation = [0, 0, 1, 0]) { if (this.__limitOrientation == null) { this.__limitOrientation = []; } this.__limitOrientation.append(limitOrientation); return this; } removeLimitOrientation(limitOrientation) { for( let i = 0; i < this.__limitOrientation.length; i++) { if ( this.__limitOrientation[i] === limitOrientation) { this.__limitOrientation.splice(i, 1); } } return this.__limitOrientation; } get limitOrientation() { return this.__limitOrientation; } set llimit(llimit = [0, 0, 0]) { this.__llimit = [llimit]; return this; } addLlimit(llimit = [0, 0, 0]) { if (this.__llimit == null) { this.__llimit = []; } this.__llimit.append(llimit); return this; } removeLlimit(llimit) { for( let i = 0; i < this.__llimit.length; i++) { if ( this.__llimit[i] === llimit) { this.__llimit.splice(i, 1); } } return this.__llimit; } get llimit() { return this.__llimit; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set name(name = null) { this.__name = [name]; return this; } addName(name = null) { if (this.__name == null) { this.__name = []; } this.__name.append(name); return this; } removeName(name) { for( let i = 0; i < this.__name.length; i++) { if ( this.__name[i] === name) { this.__name.splice(i, 1); } } return this.__name; } get name() { return this.__name; } set rotation(rotation = [0, 0, 1, 0]) { this.__rotation = [rotation]; return this; } addRotation(rotation = [0, 0, 1, 0]) { if (this.__rotation == null) { this.__rotation = []; } this.__rotation.append(rotation); return this; } removeRotation(rotation) { for( let i = 0; i < this.__rotation.length; i++) { if ( this.__rotation[i] === rotation) { this.__rotation.splice(i, 1); } } return this.__rotation; } get rotation() { return this.__rotation; } set scale(scale = [1, 1, 1]) { if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) { return null; } this.__scale = [scale]; return this; } addScale(scale = [1, 1, 1]) { if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) { return null; } if (this.__scale == null) { this.__scale = []; } this.__scale.append(scale); return this; } removeScale(scale) { for( let i = 0; i < this.__scale.length; i++) { if ( this.__scale[i] === scale) { this.__scale.splice(i, 1); } } return this.__scale; } get scale() { return this.__scale; } set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) { this.__scaleOrientation = [scaleOrientation]; return this; } addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) { if (this.__scaleOrientation == null) { this.__scaleOrientation = []; } this.__scaleOrientation.append(scaleOrientation); return this; } removeScaleOrientation(scaleOrientation) { for( let i = 0; i < this.__scaleOrientation.length; i++) { if ( this.__scaleOrientation[i] === scaleOrientation) { this.__scaleOrientation.splice(i, 1); } } return this.__scaleOrientation; } get scaleOrientation() { return this.__scaleOrientation; } set skinCoordIndex(skinCoordIndex = null) { if (skinCoordIndex == null || skinCoordIndex.length <= 0 || Math.min(skinCoordIndex) < 0) { return null; } this.__skinCoordIndex = [skinCoordIndex]; return this; } addSkinCoordIndex(skinCoordIndex = null) { if (skinCoordIndex == null || skinCoordIndex.length <= 0 || Math.min(skinCoordIndex) < 0) { return null; } if (this.__skinCoordIndex == null) { this.__skinCoordIndex = []; } this.__skinCoordIndex.append(skinCoordIndex); return this; } removeSkinCoordIndex(skinCoordIndex) { for( let i = 0; i < this.__skinCoordIndex.length; i++) { if ( this.__skinCoordIndex[i] === skinCoordIndex) { this.__skinCoordIndex.splice(i, 1); } } return this.__skinCoordIndex; } get skinCoordIndex() { return this.__skinCoordIndex; } set skinCoordWeight(skinCoordWeight = null) { this.__skinCoordWeight = [skinCoordWeight]; return this; } addSkinCoordWeight(skinCoordWeight = null) { if (this.__skinCoordWeight == null) { this.__skinCoordWeight = []; } this.__skinCoordWeight.append(skinCoordWeight); return this; } removeSkinCoordWeight(skinCoordWeight) { for( let i = 0; i < this.__skinCoordWeight.length; i++) { if ( this.__skinCoordWeight[i] === skinCoordWeight) { this.__skinCoordWeight.splice(i, 1); } } return this.__skinCoordWeight; } get skinCoordWeight() { return this.__skinCoordWeight; } set stiffness(stiffness = [1, 1, 1]) { if (stiffness == null || stiffness.length <= 0 || Math.min(stiffness) < 0) { return null; } if (stiffness == null || stiffness.length <= 0 || Math.max(stiffness) > 1) { return null; } this.__stiffness = [stiffness]; return this; } addStiffness(stiffness = [1, 1, 1]) { if (stiffness == null || stiffness.length <= 0 || Math.min(stiffness) < 0) { return null; } if (stiffness == null || stiffness.length <= 0 || Math.max(stiffness) > 1) { return null; } if (this.__stiffness == null) { this.__stiffness = []; } this.__stiffness.append(stiffness); return this; } removeStiffness(stiffness) { for( let i = 0; i < this.__stiffness.length; i++) { if ( this.__stiffness[i] === stiffness) { this.__stiffness.splice(i, 1); } } return this.__stiffness; } get stiffness() { return this.__stiffness; } set translation(translation = [0, 0, 0]) { this.__translation = [translation]; return this; } addTranslation(translation = [0, 0, 0]) { if (this.__translation == null) { this.__translation = []; } this.__translation.append(translation); return this; } removeTranslation(translation) { for( let i = 0; i < this.__translation.length; i++) { if ( this.__translation[i] === translation) { this.__translation.splice(i, 1); } } return this.__translation; } get translation() { return this.__translation; } set ulimit(ulimit = [0, 0, 0]) { this.__ulimit = [ulimit]; return this; } addUlimit(ulimit = [0, 0, 0]) { if (this.__ulimit == null) { this.__ulimit = []; } this.__ulimit.append(ulimit); return this; } removeUlimit(ulimit) { for( let i = 0; i < this.__ulimit.length; i++) { if ( this.__ulimit[i] === ulimit) { this.__ulimit.splice(i, 1); } } return this.__ulimit; } get ulimit() { return this.__ulimit; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 4) { return null; } this.__loa = loa; var loop = kwargs["loop"] || false; this.__loop = loop; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var startFrame = kwargs["startFrame"] || 0; if (startFrame == null || startFrame < 0) { return null; } this.__startFrame = startFrame; var values = kwargs["values"] || null; this.__values = values; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set channels(channels = null) { this.__channels = [channels]; return this; } addChannels(channels = null) { if (this.__channels == null) { this.__channels = []; } this.__channels.append(channels); return this; } removeChannels(channels) { for( let i = 0; i < this.__channels.length; i++) { if ( this.__channels[i] === channels) { this.__channels.splice(i, 1); } } return this.__channels; } get channels() { return this.__channels; } set channelsEnabled(channelsEnabled = null) { this.__channelsEnabled = [channelsEnabled]; return this; } addChannelsEnabled(channelsEnabled = null) { if (this.__channelsEnabled == null) { this.__channelsEnabled = []; } this.__channelsEnabled.append(channelsEnabled); return this; } removeChannelsEnabled(channelsEnabled) { for( let i = 0; i < this.__channelsEnabled.length; i++) { if ( this.__channelsEnabled[i] === channelsEnabled) { this.__channelsEnabled.splice(i, 1); } } return this.__channelsEnabled; } get channelsEnabled() { return this.__channelsEnabled; } removeCycleTime(cycleTime) { for( let i = 0; i < this.__cycleTime.length; i++) { if ( this.__cycleTime[i] === cycleTime) { this.__cycleTime.splice(i, 1); } } return this.__cycleTime; } get cycleTime() { return this.__cycleTime; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } removeElapsedTime(elapsedTime) { for( let i = 0; i < this.__elapsedTime.length; i++) { if ( this.__elapsedTime[i] === elapsedTime) { this.__elapsedTime.splice(i, 1); } } return this.__elapsedTime; } get elapsedTime() { return this.__elapsedTime; } set enabled(enabled = false) { this.__enabled = [enabled]; return this; } addEnabled(enabled = false) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set endFrame(endFrame = -1) { if (endFrame == null || endFrame < -1) { return null; } this.__endFrame = [endFrame]; return this; } addEndFrame(endFrame = -1) { if (endFrame == null || endFrame < -1) { return null; } if (this.__endFrame == null) { this.__endFrame = []; } this.__endFrame.append(endFrame); return this; } removeEndFrame(endFrame) { for( let i = 0; i < this.__endFrame.length; i++) { if ( this.__endFrame[i] === endFrame) { this.__endFrame.splice(i, 1); } } return this.__endFrame; } get endFrame() { return this.__endFrame; } removeFrameCount(frameCount) { for( let i = 0; i < this.__frameCount.length; i++) { if ( this.__frameCount[i] === frameCount) { this.__frameCount.splice(i, 1); } } return this.__frameCount; } get frameCount() { return this.__frameCount; } set frameDuration(frameDuration = 0.1) { if (frameDuration == null || frameDuration <= 0) { return null; } this.__frameDuration = [frameDuration]; return this; } addFrameDuration(frameDuration = 0.1) { if (frameDuration == null || frameDuration <= 0) { return null; } if (this.__frameDuration == null) { this.__frameDuration = []; } this.__frameDuration.append(frameDuration); return this; } removeFrameDuration(frameDuration) { for( let i = 0; i < this.__frameDuration.length; i++) { if ( this.__frameDuration[i] === frameDuration) { this.__frameDuration.splice(i, 1); } } return this.__frameDuration; } get frameDuration() { return this.__frameDuration; } set frameIncrement(frameIncrement = 1) { this.__frameIncrement = [frameIncrement]; return this; } addFrameIncrement(frameIncrement = 1) { if (this.__frameIncrement == null) { this.__frameIncrement = []; } this.__frameIncrement.append(frameIncrement); return this; } removeFrameIncrement(frameIncrement) { for( let i = 0; i < this.__frameIncrement.length; i++) { if ( this.__frameIncrement[i] === frameIncrement) { this.__frameIncrement.splice(i, 1); } } return this.__frameIncrement; } get frameIncrement() { return this.__frameIncrement; } set frameIndex(frameIndex = 0) { if (frameIndex == null || frameIndex < 0) { return null; } this.__frameIndex = [frameIndex]; return this; } addFrameIndex(frameIndex = 0) { if (frameIndex == null || frameIndex < 0) { return null; } if (this.__frameIndex == null) { this.__frameIndex = []; } this.__frameIndex.append(frameIndex); return this; } removeFrameIndex(frameIndex) { for( let i = 0; i < this.__frameIndex.length; i++) { if ( this.__frameIndex[i] === frameIndex) { this.__frameIndex.splice(i, 1); } } return this.__frameIndex; } get frameIndex() { return this.__frameIndex; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set joints(joints = null) { this.__joints = [joints]; return this; } addJoints(joints = null) { if (this.__joints == null) { this.__joints = []; } this.__joints.append(joints); return this; } removeJoints(joints) { for( let i = 0; i < this.__joints.length; i++) { if ( this.__joints[i] === joints) { this.__joints.splice(i, 1); } } return this.__joints; } get joints() { return this.__joints; } set loa(loa = -1) { if (loa == null || loa < -1) { return null; } if (loa == null || loa > 4) { return null; } this.__loa = [loa]; return this; } addLoa(loa = -1) { if (loa == null || loa < -1) { return null; } if (loa == null || loa > 4) { return null; } if (this.__loa == null) { this.__loa = []; } this.__loa.append(loa); return this; } removeLoa(loa) { for( let i = 0; i < this.__loa.length; i++) { if ( this.__loa[i] === loa) { this.__loa.splice(i, 1); } } return this.__loa; } get loa() { return this.__loa; } set loop(loop = false) { this.__loop = [loop]; return this; } addLoop(loop = false) { if (this.__loop == null) { this.__loop = []; } this.__loop.append(loop); return this; } removeLoop(loop) { for( let i = 0; i < this.__loop.length; i++) { if ( this.__loop[i] === loop) { this.__loop.splice(i, 1); } } return this.__loop; } get isLoop() { return this.__loop; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set startFrame(startFrame = 0) { if (startFrame == null || startFrame < 0) { return null; } this.__startFrame = [startFrame]; return this; } addStartFrame(startFrame = 0) { if (startFrame == null || startFrame < 0) { return null; } if (this.__startFrame == null) { this.__startFrame = []; } this.__startFrame.append(startFrame); return this; } removeStartFrame(startFrame) { for( let i = 0; i < this.__startFrame.length; i++) { if ( this.__startFrame[i] === startFrame) { this.__startFrame.splice(i, 1); } } return this.__startFrame; } get startFrame() { return this.__startFrame; } set values(values = null) { this.__values = [values]; return this; } addValues(values = null) { if (this.__values == null) { this.__values = []; } this.__values.append(values); return this; } removeValues(values) { for( let i = 0; i < this.__values.length; i++) { if ( this.__values[i] === values) { this.__values.splice(i, 1); } } return this.__values; } get values() { return this.__values; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__color = color; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var fogType = kwargs["fogType"] || "LINEAR"; if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = fogType; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var visibilityRange = kwargs["visibilityRange"] || 0; if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = visibilityRange; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set fogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } this.__fogType = [fogType]; return this; } addFogType(fogType = "LINEAR") { if ('LINEAR' === fogType) { } else if ('EXPONENTIAL' === fogType) { } else { return null; } if (this.__fogType == null) { this.__fogType = []; } this.__fogType.append(fogType); return this; } removeFogType(fogType) { for( let i = 0; i < this.__fogType.length; i++) { if ( this.__fogType[i] === fogType) { this.__fogType.splice(i, 1); } } return this.__fogType; } get fogType() { return this.__fogType; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set visibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } this.__visibilityRange = [visibilityRange]; return this; } addVisibilityRange(visibilityRange = 0) { if (visibilityRange == null || visibilityRange < 0) { return null; } if (this.__visibilityRange == null) { this.__visibilityRange = []; } this.__visibilityRange.append(visibilityRange); return this; } removeVisibilityRange(visibilityRange) { for( let i = 0; i < this.__visibilityRange.length; i++) { if ( this.__visibilityRange[i] === visibilityRange) { this.__visibilityRange.splice(i, 1); } } return this.__visibilityRange; } get visibilityRange() { return this.__visibilityRange; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var diffuseColor = kwargs["diffuseColor"] || [0.8, 0.8, 0.8]; if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } this.__diffuseColor = diffuseColor; var emissiveColor = kwargs["emissiveColor"] || [0, 0, 0]; if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } this.__emissiveColor = emissiveColor; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var shininess = kwargs["shininess"] || 0.2; if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } this.__shininess = shininess; var specularColor = kwargs["specularColor"] || [0, 0, 0]; if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } this.__specularColor = specularColor; var transparency = kwargs["transparency"] || 0; if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = transparency; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0.2) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0.2) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set diffuseColor(diffuseColor = [0.8, 0.8, 0.8]) { if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } this.__diffuseColor = [diffuseColor]; return this; } addDiffuseColor(diffuseColor = [0.8, 0.8, 0.8]) { if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } if (this.__diffuseColor == null) { this.__diffuseColor = []; } this.__diffuseColor.append(diffuseColor); return this; } removeDiffuseColor(diffuseColor) { for( let i = 0; i < this.__diffuseColor.length; i++) { if ( this.__diffuseColor[i] === diffuseColor) { this.__diffuseColor.splice(i, 1); } } return this.__diffuseColor; } get diffuseColor() { return this.__diffuseColor; } set emissiveColor(emissiveColor = [0, 0, 0]) { if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } this.__emissiveColor = [emissiveColor]; return this; } addEmissiveColor(emissiveColor = [0, 0, 0]) { if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } if (this.__emissiveColor == null) { this.__emissiveColor = []; } this.__emissiveColor.append(emissiveColor); return this; } removeEmissiveColor(emissiveColor) { for( let i = 0; i < this.__emissiveColor.length; i++) { if ( this.__emissiveColor[i] === emissiveColor) { this.__emissiveColor.splice(i, 1); } } return this.__emissiveColor; } get emissiveColor() { return this.__emissiveColor; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set shininess(shininess = 0.2) { if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } this.__shininess = [shininess]; return this; } addShininess(shininess = 0.2) { if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } if (this.__shininess == null) { this.__shininess = []; } this.__shininess.append(shininess); return this; } removeShininess(shininess) { for( let i = 0; i < this.__shininess.length; i++) { if ( this.__shininess[i] === shininess) { this.__shininess.splice(i, 1); } } return this.__shininess; } get shininess() { return this.__shininess; } set specularColor(specularColor = [0, 0, 0]) { if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } this.__specularColor = [specularColor]; return this; } addSpecularColor(specularColor = [0, 0, 0]) { if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } if (this.__specularColor == null) { this.__specularColor = []; } this.__specularColor.append(specularColor); return this; } removeSpecularColor(specularColor) { for( let i = 0; i < this.__specularColor.length; i++) { if ( this.__specularColor[i] === specularColor) { this.__specularColor.splice(i, 1); } } return this.__specularColor; } get specularColor() { return this.__specularColor; } set transparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = [transparency]; return this; } addTransparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } if (this.__transparency == null) { this.__transparency = []; } this.__transparency.append(transparency); return this; } removeTransparency(transparency) { for( let i = 0; i < this.__transparency.length; i++) { if ( this.__transparency[i] === transparency) { this.__transparency.splice(i, 1); } } return this.__transparency; } get transparency() { return this.__transparency; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } toXMLNode(attrName) { let str = '' str += ' 3) { return null; } this.__enabledAxes = enabledAxes; var forceOutput = kwargs["forceOutput"] || ["NONE"]; this.__forceOutput = forceOutput; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var motor1Angle = kwargs["motor1Angle"] || null; this.__motor1Angle = motor1Angle; var motor1AngleRate = kwargs["motor1AngleRate"] || null; this.__motor1AngleRate = motor1AngleRate; var motor1Axis = kwargs["motor1Axis"] || [0, 0, 0]; this.__motor1Axis = motor1Axis; var motor2Angle = kwargs["motor2Angle"] || null; this.__motor2Angle = motor2Angle; var motor2AngleRate = kwargs["motor2AngleRate"] || null; this.__motor2AngleRate = motor2AngleRate; var motor2Axis = kwargs["motor2Axis"] || [0, 0, 0]; this.__motor2Axis = motor2Axis; var motor3Angle = kwargs["motor3Angle"] || null; this.__motor3Angle = motor3Angle; var motor3AngleRate = kwargs["motor3AngleRate"] || null; this.__motor3AngleRate = motor3AngleRate; var motor3Axis = kwargs["motor3Axis"] || [0, 0, 0]; this.__motor3Axis = motor3Axis; var stop1Bounce = kwargs["stop1Bounce"] || 0; this.__stop1Bounce = stop1Bounce; var stop1ErrorCorrection = kwargs["stop1ErrorCorrection"] || 0.8; this.__stop1ErrorCorrection = stop1ErrorCorrection; var stop2Bounce = kwargs["stop2Bounce"] || 0; this.__stop2Bounce = stop2Bounce; var stop2ErrorCorrection = kwargs["stop2ErrorCorrection"] || 0.8; this.__stop2ErrorCorrection = stop2ErrorCorrection; var stop3Bounce = kwargs["stop3Bounce"] || 0; this.__stop3Bounce = stop3Bounce; var stop3ErrorCorrection = kwargs["stop3ErrorCorrection"] || 0.8; this.__stop3ErrorCorrection = stop3ErrorCorrection; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set axis1Angle(axis1Angle = 0) { this.__axis1Angle = [axis1Angle]; return this; } addAxis1Angle(axis1Angle = 0) { if (this.__axis1Angle == null) { this.__axis1Angle = []; } this.__axis1Angle.append(axis1Angle); return this; } removeAxis1Angle(axis1Angle) { for( let i = 0; i < this.__axis1Angle.length; i++) { if ( this.__axis1Angle[i] === axis1Angle) { this.__axis1Angle.splice(i, 1); } } return this.__axis1Angle; } get axis1Angle() { return this.__axis1Angle; } set axis1Torque(axis1Torque = 0) { this.__axis1Torque = [axis1Torque]; return this; } addAxis1Torque(axis1Torque = 0) { if (this.__axis1Torque == null) { this.__axis1Torque = []; } this.__axis1Torque.append(axis1Torque); return this; } removeAxis1Torque(axis1Torque) { for( let i = 0; i < this.__axis1Torque.length; i++) { if ( this.__axis1Torque[i] === axis1Torque) { this.__axis1Torque.splice(i, 1); } } return this.__axis1Torque; } get axis1Torque() { return this.__axis1Torque; } set axis2Angle(axis2Angle = 0) { this.__axis2Angle = [axis2Angle]; return this; } addAxis2Angle(axis2Angle = 0) { if (this.__axis2Angle == null) { this.__axis2Angle = []; } this.__axis2Angle.append(axis2Angle); return this; } removeAxis2Angle(axis2Angle) { for( let i = 0; i < this.__axis2Angle.length; i++) { if ( this.__axis2Angle[i] === axis2Angle) { this.__axis2Angle.splice(i, 1); } } return this.__axis2Angle; } get axis2Angle() { return this.__axis2Angle; } set axis2Torque(axis2Torque = 0) { this.__axis2Torque = [axis2Torque]; return this; } addAxis2Torque(axis2Torque = 0) { if (this.__axis2Torque == null) { this.__axis2Torque = []; } this.__axis2Torque.append(axis2Torque); return this; } removeAxis2Torque(axis2Torque) { for( let i = 0; i < this.__axis2Torque.length; i++) { if ( this.__axis2Torque[i] === axis2Torque) { this.__axis2Torque.splice(i, 1); } } return this.__axis2Torque; } get axis2Torque() { return this.__axis2Torque; } set axis3Angle(axis3Angle = 0) { this.__axis3Angle = [axis3Angle]; return this; } addAxis3Angle(axis3Angle = 0) { if (this.__axis3Angle == null) { this.__axis3Angle = []; } this.__axis3Angle.append(axis3Angle); return this; } removeAxis3Angle(axis3Angle) { for( let i = 0; i < this.__axis3Angle.length; i++) { if ( this.__axis3Angle[i] === axis3Angle) { this.__axis3Angle.splice(i, 1); } } return this.__axis3Angle; } get axis3Angle() { return this.__axis3Angle; } set axis3Torque(axis3Torque = 0) { this.__axis3Torque = [axis3Torque]; return this; } addAxis3Torque(axis3Torque = 0) { if (this.__axis3Torque == null) { this.__axis3Torque = []; } this.__axis3Torque.append(axis3Torque); return this; } removeAxis3Torque(axis3Torque) { for( let i = 0; i < this.__axis3Torque.length; i++) { if ( this.__axis3Torque[i] === axis3Torque) { this.__axis3Torque.splice(i, 1); } } return this.__axis3Torque; } get axis3Torque() { return this.__axis3Torque; } set body1(body1 = null) { this.__body1 = [body1]; return this; } addBody1(body1 = null) { if (this.__body1 == null) { this.__body1 = []; } this.__body1.append(body1); return this; } removeBody1(body1) { for( let i = 0; i < this.__body1.length; i++) { if ( this.__body1[i] === body1) { this.__body1.splice(i, 1); } } return this.__body1; } get body1() { return this.__body1; } set body2(body2 = null) { this.__body2 = [body2]; return this; } addBody2(body2 = null) { if (this.__body2 == null) { this.__body2 = []; } this.__body2.append(body2); return this; } removeBody2(body2) { for( let i = 0; i < this.__body2.length; i++) { if ( this.__body2[i] === body2) { this.__body2.splice(i, 1); } } return this.__body2; } get body2() { return this.__body2; } set enabledAxes(enabledAxes = 1) { if (enabledAxes == null || enabledAxes < 0) { return null; } if (enabledAxes == null || enabledAxes > 3) { return null; } this.__enabledAxes = [enabledAxes]; return this; } addEnabledAxes(enabledAxes = 1) { if (enabledAxes == null || enabledAxes < 0) { return null; } if (enabledAxes == null || enabledAxes > 3) { return null; } if (this.__enabledAxes == null) { this.__enabledAxes = []; } this.__enabledAxes.append(enabledAxes); return this; } removeEnabledAxes(enabledAxes) { for( let i = 0; i < this.__enabledAxes.length; i++) { if ( this.__enabledAxes[i] === enabledAxes) { this.__enabledAxes.splice(i, 1); } } return this.__enabledAxes; } get enabledAxes() { return this.__enabledAxes; } set forceOutput(forceOutput = ["NONE"]) { this.__forceOutput = [forceOutput]; return this; } addForceOutput(forceOutput = ["NONE"]) { if (this.__forceOutput == null) { this.__forceOutput = []; } this.__forceOutput.append(forceOutput); return this; } removeForceOutput(forceOutput) { for( let i = 0; i < this.__forceOutput.length; i++) { if ( this.__forceOutput[i] === forceOutput) { this.__forceOutput.splice(i, 1); } } return this.__forceOutput; } get forceOutput() { return this.__forceOutput; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } removeMotor1Angle(motor1Angle) { for( let i = 0; i < this.__motor1Angle.length; i++) { if ( this.__motor1Angle[i] === motor1Angle) { this.__motor1Angle.splice(i, 1); } } return this.__motor1Angle; } get motor1Angle() { return this.__motor1Angle; } removeMotor1AngleRate(motor1AngleRate) { for( let i = 0; i < this.__motor1AngleRate.length; i++) { if ( this.__motor1AngleRate[i] === motor1AngleRate) { this.__motor1AngleRate.splice(i, 1); } } return this.__motor1AngleRate; } get motor1AngleRate() { return this.__motor1AngleRate; } set motor1Axis(motor1Axis = [0, 0, 0]) { this.__motor1Axis = [motor1Axis]; return this; } addMotor1Axis(motor1Axis = [0, 0, 0]) { if (this.__motor1Axis == null) { this.__motor1Axis = []; } this.__motor1Axis.append(motor1Axis); return this; } removeMotor1Axis(motor1Axis) { for( let i = 0; i < this.__motor1Axis.length; i++) { if ( this.__motor1Axis[i] === motor1Axis) { this.__motor1Axis.splice(i, 1); } } return this.__motor1Axis; } get motor1Axis() { return this.__motor1Axis; } removeMotor2Angle(motor2Angle) { for( let i = 0; i < this.__motor2Angle.length; i++) { if ( this.__motor2Angle[i] === motor2Angle) { this.__motor2Angle.splice(i, 1); } } return this.__motor2Angle; } get motor2Angle() { return this.__motor2Angle; } removeMotor2AngleRate(motor2AngleRate) { for( let i = 0; i < this.__motor2AngleRate.length; i++) { if ( this.__motor2AngleRate[i] === motor2AngleRate) { this.__motor2AngleRate.splice(i, 1); } } return this.__motor2AngleRate; } get motor2AngleRate() { return this.__motor2AngleRate; } set motor2Axis(motor2Axis = [0, 0, 0]) { this.__motor2Axis = [motor2Axis]; return this; } addMotor2Axis(motor2Axis = [0, 0, 0]) { if (this.__motor2Axis == null) { this.__motor2Axis = []; } this.__motor2Axis.append(motor2Axis); return this; } removeMotor2Axis(motor2Axis) { for( let i = 0; i < this.__motor2Axis.length; i++) { if ( this.__motor2Axis[i] === motor2Axis) { this.__motor2Axis.splice(i, 1); } } return this.__motor2Axis; } get motor2Axis() { return this.__motor2Axis; } removeMotor3Angle(motor3Angle) { for( let i = 0; i < this.__motor3Angle.length; i++) { if ( this.__motor3Angle[i] === motor3Angle) { this.__motor3Angle.splice(i, 1); } } return this.__motor3Angle; } get motor3Angle() { return this.__motor3Angle; } removeMotor3AngleRate(motor3AngleRate) { for( let i = 0; i < this.__motor3AngleRate.length; i++) { if ( this.__motor3AngleRate[i] === motor3AngleRate) { this.__motor3AngleRate.splice(i, 1); } } return this.__motor3AngleRate; } get motor3AngleRate() { return this.__motor3AngleRate; } set motor3Axis(motor3Axis = [0, 0, 0]) { this.__motor3Axis = [motor3Axis]; return this; } addMotor3Axis(motor3Axis = [0, 0, 0]) { if (this.__motor3Axis == null) { this.__motor3Axis = []; } this.__motor3Axis.append(motor3Axis); return this; } removeMotor3Axis(motor3Axis) { for( let i = 0; i < this.__motor3Axis.length; i++) { if ( this.__motor3Axis[i] === motor3Axis) { this.__motor3Axis.splice(i, 1); } } return this.__motor3Axis; } get motor3Axis() { return this.__motor3Axis; } set stop1Bounce(stop1Bounce = 0) { this.__stop1Bounce = [stop1Bounce]; return this; } addStop1Bounce(stop1Bounce = 0) { if (this.__stop1Bounce == null) { this.__stop1Bounce = []; } this.__stop1Bounce.append(stop1Bounce); return this; } removeStop1Bounce(stop1Bounce) { for( let i = 0; i < this.__stop1Bounce.length; i++) { if ( this.__stop1Bounce[i] === stop1Bounce) { this.__stop1Bounce.splice(i, 1); } } return this.__stop1Bounce; } get stop1Bounce() { return this.__stop1Bounce; } set stop1ErrorCorrection(stop1ErrorCorrection = 0.8) { this.__stop1ErrorCorrection = [stop1ErrorCorrection]; return this; } addStop1ErrorCorrection(stop1ErrorCorrection = 0.8) { if (this.__stop1ErrorCorrection == null) { this.__stop1ErrorCorrection = []; } this.__stop1ErrorCorrection.append(stop1ErrorCorrection); return this; } removeStop1ErrorCorrection(stop1ErrorCorrection) { for( let i = 0; i < this.__stop1ErrorCorrection.length; i++) { if ( this.__stop1ErrorCorrection[i] === stop1ErrorCorrection) { this.__stop1ErrorCorrection.splice(i, 1); } } return this.__stop1ErrorCorrection; } get stop1ErrorCorrection() { return this.__stop1ErrorCorrection; } set stop2Bounce(stop2Bounce = 0) { this.__stop2Bounce = [stop2Bounce]; return this; } addStop2Bounce(stop2Bounce = 0) { if (this.__stop2Bounce == null) { this.__stop2Bounce = []; } this.__stop2Bounce.append(stop2Bounce); return this; } removeStop2Bounce(stop2Bounce) { for( let i = 0; i < this.__stop2Bounce.length; i++) { if ( this.__stop2Bounce[i] === stop2Bounce) { this.__stop2Bounce.splice(i, 1); } } return this.__stop2Bounce; } get stop2Bounce() { return this.__stop2Bounce; } set stop2ErrorCorrection(stop2ErrorCorrection = 0.8) { this.__stop2ErrorCorrection = [stop2ErrorCorrection]; return this; } addStop2ErrorCorrection(stop2ErrorCorrection = 0.8) { if (this.__stop2ErrorCorrection == null) { this.__stop2ErrorCorrection = []; } this.__stop2ErrorCorrection.append(stop2ErrorCorrection); return this; } removeStop2ErrorCorrection(stop2ErrorCorrection) { for( let i = 0; i < this.__stop2ErrorCorrection.length; i++) { if ( this.__stop2ErrorCorrection[i] === stop2ErrorCorrection) { this.__stop2ErrorCorrection.splice(i, 1); } } return this.__stop2ErrorCorrection; } get stop2ErrorCorrection() { return this.__stop2ErrorCorrection; } set stop3Bounce(stop3Bounce = 0) { this.__stop3Bounce = [stop3Bounce]; return this; } addStop3Bounce(stop3Bounce = 0) { if (this.__stop3Bounce == null) { this.__stop3Bounce = []; } this.__stop3Bounce.append(stop3Bounce); return this; } removeStop3Bounce(stop3Bounce) { for( let i = 0; i < this.__stop3Bounce.length; i++) { if ( this.__stop3Bounce[i] === stop3Bounce) { this.__stop3Bounce.splice(i, 1); } } return this.__stop3Bounce; } get stop3Bounce() { return this.__stop3Bounce; } set stop3ErrorCorrection(stop3ErrorCorrection = 0.8) { this.__stop3ErrorCorrection = [stop3ErrorCorrection]; return this; } addStop3ErrorCorrection(stop3ErrorCorrection = 0.8) { if (this.__stop3ErrorCorrection == null) { this.__stop3ErrorCorrection = []; } this.__stop3ErrorCorrection.append(stop3ErrorCorrection); return this; } removeStop3ErrorCorrection(stop3ErrorCorrection) { for( let i = 0; i < this.__stop3ErrorCorrection.length; i++) { if ( this.__stop3ErrorCorrection[i] === stop3ErrorCorrection) { this.__stop3ErrorCorrection.splice(i, 1); } } return this.__stop3ErrorCorrection; } get stop3ErrorCorrection() { return this.__stop3ErrorCorrection; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__alpha = alpha; var color = kwargs["color"] || [1, 1, 1]; if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = color; var function_ = kwargs["function_"] || null; this.__function_ = function_; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var mode = kwargs["mode"] || null; this.__mode = mode; var source = kwargs["source"] || null; this.__source = source; var texture = kwargs["texture"] || null; this.__texture = texture; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set alpha(alpha = 1) { if (alpha == null || alpha < 0) { return null; } if (alpha == null || alpha > 1) { return null; } this.__alpha = [alpha]; return this; } addAlpha(alpha = 1) { if (alpha == null || alpha < 0) { return null; } if (alpha == null || alpha > 1) { return null; } if (this.__alpha == null) { this.__alpha = []; } this.__alpha.append(alpha); return this; } removeAlpha(alpha) { for( let i = 0; i < this.__alpha.length; i++) { if ( this.__alpha[i] === alpha) { this.__alpha.splice(i, 1); } } return this.__alpha; } get alpha() { return this.__alpha; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set function(function_ = null) { this.__function_ = [function_]; return this; } addFunction(function_ = null) { if (this.__function_ == null) { this.__function_ = []; } this.__function_.append(function_); return this; } removeFunction(function_) { for( let i = 0; i < this.__function_.length; i++) { if ( this.__function_[i] === function_) { this.__function_.splice(i, 1); } } return this.__function_; } get function() { return this.__function_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set mode(mode = null) { this.__mode = [mode]; return this; } addMode(mode = null) { if (this.__mode == null) { this.__mode = []; } this.__mode.append(mode); return this; } removeMode(mode) { for( let i = 0; i < this.__mode.length; i++) { if ( this.__mode[i] === mode) { this.__mode.splice(i, 1); } } return this.__mode; } get mode() { return this.__mode; } set source(source = null) { this.__source = [source]; return this; } addSource(source = null) { if (this.__source == null) { this.__source = []; } this.__source.append(source); return this; } removeSource(source) { for( let i = 0; i < this.__source.length; i++) { if ( this.__source[i] === source) { this.__source.splice(i, 1); } } return this.__source; } get source() { return this.__source; } set texture(texture = null) { this.__texture = [texture]; return this; } addTexture(texture = null) { if (this.__texture == null) { this.__texture = []; } this.__texture.append(texture); return this; } removeTexture(texture) { for( let i = 0; i < this.__texture.length; i++) { if ( this.__texture[i] === texture) { this.__texture.splice(i, 1); } } return this.__texture; } get texture() { return this.__texture; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__vector = vector; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set vector(vector = null) { if (vector == null || vector.length <= 0 || Math.min(vector) < -1) { return null; } if (vector == null || vector.length <= 0 || Math.max(vector) > 1) { return null; } this.__vector = [vector]; return this; } addVector(vector = null) { if (vector == null || vector.length <= 0 || Math.min(vector) < -1) { return null; } if (vector == null || vector.length <= 0 || Math.max(vector) > 1) { return null; } if (this.__vector == null) { this.__vector = []; } this.__vector.append(vector); return this; } removeVector(vector) { for( let i = 0; i < this.__vector.length; i++) { if ( this.__vector[i] === vector) { this.__vector.splice(i, 1); } } return this.__vector; } get vector() { return this.__vector; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__lifetimeVariation = lifetimeVariation; var maxParticles = kwargs["maxParticles"] || 200; if (maxParticles == null || maxParticles < 0) { return null; } this.__maxParticles = maxParticles; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var particleLifetime = kwargs["particleLifetime"] || 5; if (particleLifetime == null || particleLifetime < 0) { return null; } this.__particleLifetime = particleLifetime; var particleSize = kwargs["particleSize"] || [0.02, 0.02]; if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) { return null; } this.__particleSize = particleSize; var physics = kwargs["physics"] || null; this.__physics = physics; var texCoordKey = kwargs["texCoordKey"] || null; if (texCoordKey == null || texCoordKey.length <= 0 || Math.min(texCoordKey) < 0) { return null; } this.__texCoordKey = texCoordKey; var texCoordRamp = kwargs["texCoordRamp"] || null; this.__texCoordRamp = texCoordRamp; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set appearance(appearance = null) { this.__appearance = [appearance]; return this; } addAppearance(appearance = null) { if (this.__appearance == null) { this.__appearance = []; } this.__appearance.append(appearance); return this; } removeAppearance(appearance) { for( let i = 0; i < this.__appearance.length; i++) { if ( this.__appearance[i] === appearance) { this.__appearance.splice(i, 1); } } return this.__appearance; } get appearance() { return this.__appearance; } set createParticles(createParticles = true) { this.__createParticles = [createParticles]; return this; } addCreateParticles(createParticles = true) { if (this.__createParticles == null) { this.__createParticles = []; } this.__createParticles.append(createParticles); return this; } removeCreateParticles(createParticles) { for( let i = 0; i < this.__createParticles.length; i++) { if ( this.__createParticles[i] === createParticles) { this.__createParticles.splice(i, 1); } } return this.__createParticles; } get isCreateParticles() { return this.__createParticles; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set geometry(geometry = null) { this.__geometry = [geometry]; return this; } addGeometry(geometry = null) { if (this.__geometry == null) { this.__geometry = []; } this.__geometry.append(geometry); return this; } removeGeometry(geometry) { for( let i = 0; i < this.__geometry.length; i++) { if ( this.__geometry[i] === geometry) { this.__geometry.splice(i, 1); } } return this.__geometry; } get geometry() { return this.__geometry; } set geometry(geometry = null) { this.__geometry = [geometry]; return this; } addGeometry(geometry = null) { if (this.__geometry == null) { this.__geometry = []; } this.__geometry.append(geometry); return this; } removeGeometry(geometry) { for( let i = 0; i < this.__geometry.length; i++) { if ( this.__geometry[i] === geometry) { this.__geometry.splice(i, 1); } } return this.__geometry; } get geometry() { return this.__geometry; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set lifetimeVariation(lifetimeVariation = 0.25) { if (lifetimeVariation == null || lifetimeVariation < 0) { return null; } if (lifetimeVariation == null || lifetimeVariation > 1) { return null; } this.__lifetimeVariation = [lifetimeVariation]; return this; } addLifetimeVariation(lifetimeVariation = 0.25) { if (lifetimeVariation == null || lifetimeVariation < 0) { return null; } if (lifetimeVariation == null || lifetimeVariation > 1) { return null; } if (this.__lifetimeVariation == null) { this.__lifetimeVariation = []; } this.__lifetimeVariation.append(lifetimeVariation); return this; } removeLifetimeVariation(lifetimeVariation) { for( let i = 0; i < this.__lifetimeVariation.length; i++) { if ( this.__lifetimeVariation[i] === lifetimeVariation) { this.__lifetimeVariation.splice(i, 1); } } return this.__lifetimeVariation; } get lifetimeVariation() { return this.__lifetimeVariation; } set maxParticles(maxParticles = 200) { if (maxParticles == null || maxParticles < 0) { return null; } this.__maxParticles = [maxParticles]; return this; } addMaxParticles(maxParticles = 200) { if (maxParticles == null || maxParticles < 0) { return null; } if (this.__maxParticles == null) { this.__maxParticles = []; } this.__maxParticles.append(maxParticles); return this; } removeMaxParticles(maxParticles) { for( let i = 0; i < this.__maxParticles.length; i++) { if ( this.__maxParticles[i] === maxParticles) { this.__maxParticles.splice(i, 1); } } return this.__maxParticles; } get maxParticles() { return this.__maxParticles; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set particleLifetime(particleLifetime = 5) { if (particleLifetime == null || particleLifetime < 0) { return null; } this.__particleLifetime = [particleLifetime]; return this; } addParticleLifetime(particleLifetime = 5) { if (particleLifetime == null || particleLifetime < 0) { return null; } if (this.__particleLifetime == null) { this.__particleLifetime = []; } this.__particleLifetime.append(particleLifetime); return this; } removeParticleLifetime(particleLifetime) { for( let i = 0; i < this.__particleLifetime.length; i++) { if ( this.__particleLifetime[i] === particleLifetime) { this.__particleLifetime.splice(i, 1); } } return this.__particleLifetime; } get particleLifetime() { return this.__particleLifetime; } set particleSize(particleSize = [0.02, 0.02]) { if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) { return null; } this.__particleSize = [particleSize]; return this; } addParticleSize(particleSize = [0.02, 0.02]) { if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) { return null; } if (this.__particleSize == null) { this.__particleSize = []; } this.__particleSize.append(particleSize); return this; } removeParticleSize(particleSize) { for( let i = 0; i < this.__particleSize.length; i++) { if ( this.__particleSize[i] === particleSize) { this.__particleSize.splice(i, 1); } } return this.__particleSize; } get particleSize() { return this.__particleSize; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var attenuation = kwargs["attenuation"] || [1, 0, 0]; if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } this.__attenuation = attenuation; var color = kwargs["color"] || [1, 1, 1]; if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = color; var global_ = kwargs["global_"] || true; this.__global_ = global_; var intensity = kwargs["intensity"] || 1; if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = intensity; var IS = kwargs["IS"] || null; this.__IS = IS; var location = kwargs["location"] || [0, 0, 0]; this.__location = location; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var on = kwargs["on"] || true; this.__on = on; var radius = kwargs["radius"] || 100; if (radius == null || radius < 0) { return null; } this.__radius = radius; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set attenuation(attenuation = [1, 0, 0]) { if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } this.__attenuation = [attenuation]; return this; } addAttenuation(attenuation = [1, 0, 0]) { if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } if (this.__attenuation == null) { this.__attenuation = []; } this.__attenuation.append(attenuation); return this; } removeAttenuation(attenuation) { for( let i = 0; i < this.__attenuation.length; i++) { if ( this.__attenuation[i] === attenuation) { this.__attenuation.splice(i, 1); } } return this.__attenuation; } get attenuation() { return this.__attenuation; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set global(global_ = true) { this.__global_ = [global_]; return this; } addGlobal(global_ = true) { if (this.__global_ == null) { this.__global_ = []; } this.__global_.append(global_); return this; } removeGlobal(global_) { for( let i = 0; i < this.__global_.length; i++) { if ( this.__global_[i] === global_) { this.__global_.splice(i, 1); } } return this.__global_; } get isGlobal() { return this.__global_; } set intensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = [intensity]; return this; } addIntensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } if (this.__intensity == null) { this.__intensity = []; } this.__intensity.append(intensity); return this; } removeIntensity(intensity) { for( let i = 0; i < this.__intensity.length; i++) { if ( this.__intensity[i] === intensity) { this.__intensity.splice(i, 1); } } return this.__intensity; } get intensity() { return this.__intensity; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set location(location = [0, 0, 0]) { this.__location = [location]; return this; } addLocation(location = [0, 0, 0]) { if (this.__location == null) { this.__location = []; } this.__location.append(location); return this; } removeLocation(location) { for( let i = 0; i < this.__location.length; i++) { if ( this.__location[i] === location) { this.__location.splice(i, 1); } } return this.__location; } get location() { return this.__location; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set on(on = true) { this.__on = [on]; return this; } addOn(on = true) { if (this.__on == null) { this.__on = []; } this.__on.append(on); return this; } removeOn(on) { for( let i = 0; i < this.__on.length; i++) { if ( this.__on[i] === on) { this.__on.splice(i, 1); } } return this.__on; } get isOn() { return this.__on; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__direction = direction; var IS = kwargs["IS"] || null; this.__IS = IS; var mass = kwargs["mass"] || 0; if (mass == null || mass < 0) { return null; } this.__mass = mass; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var coordIndex = kwargs["coordIndex"] || null; if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) { return null; } this.__coordIndex = coordIndex; var speed = kwargs["speed"] || 0; if (speed == null || speed < 0) { return null; } this.__speed = speed; var surfaceArea = kwargs["surfaceArea"] || 0; if (surfaceArea == null || surfaceArea < 0) { return null; } this.__surfaceArea = surfaceArea; var variation = kwargs["variation"] || 0.25; if (variation == null || variation < 0) { return null; } this.__variation = variation; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set coord(coord = null) { this.__coord = [coord]; return this; } addCoord(coord = null) { if (this.__coord == null) { this.__coord = []; } this.__coord.append(coord); return this; } removeCoord(coord) { for( let i = 0; i < this.__coord.length; i++) { if ( this.__coord[i] === coord) { this.__coord.splice(i, 1); } } return this.__coord; } get coord() { return this.__coord; } set direction(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } this.__direction = [direction]; return this; } addDirection(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set mass(mass = 0) { if (mass == null || mass < 0) { return null; } this.__mass = [mass]; return this; } addMass(mass = 0) { if (mass == null || mass < 0) { return null; } if (this.__mass == null) { this.__mass = []; } this.__mass.append(mass); return this; } removeMass(mass) { for( let i = 0; i < this.__mass.length; i++) { if ( this.__mass[i] === mass) { this.__mass.splice(i, 1); } } return this.__mass; } get mass() { return this.__mass; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_coordIndex(coordIndex = null) { if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) { return null; } this.__coordIndex = [coordIndex]; return this; } set speed(speed = 0) { if (speed == null || speed < 0) { return null; } this.__speed = [speed]; return this; } addSpeed(speed = 0) { if (speed == null || speed < 0) { return null; } if (this.__speed == null) { this.__speed = []; } this.__speed.append(speed); return this; } removeSpeed(speed) { for( let i = 0; i < this.__speed.length; i++) { if ( this.__speed[i] === speed) { this.__speed.splice(i, 1); } } return this.__speed; } get speed() { return this.__speed; } set variation(variation = 0.25) { if (variation == null || variation < 0) { return null; } this.__variation = [variation]; return this; } addVariation(variation = 0.25) { if (variation == null || variation < 0) { return null; } if (this.__variation == null) { this.__variation = []; } this.__variation.append(variation); return this; } removeVariation(variation) { for( let i = 0; i < this.__variation.length; i++) { if ( this.__variation[i] === variation) { this.__variation.splice(i, 1); } } return this.__variation; } get variation() { return this.__variation; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__intensityThreshold = intensityThreshold; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var type = kwargs["type"] || "MAX"; if ('MAX' === type) { } else if ('MIN' === type) { } else if ('AVERAGE' === type) { } else { return null; } this.__type = type; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set intensityThreshold(intensityThreshold = 0) { if (intensityThreshold == null || intensityThreshold < 0) { return null; } if (intensityThreshold == null || intensityThreshold > 1) { return null; } this.__intensityThreshold = [intensityThreshold]; return this; } addIntensityThreshold(intensityThreshold = 0) { if (intensityThreshold == null || intensityThreshold < 0) { return null; } if (intensityThreshold == null || intensityThreshold > 1) { return null; } if (this.__intensityThreshold == null) { this.__intensityThreshold = []; } this.__intensityThreshold.append(intensityThreshold); return this; } removeIntensityThreshold(intensityThreshold) { for( let i = 0; i < this.__intensityThreshold.length; i++) { if ( this.__intensityThreshold[i] === intensityThreshold) { this.__intensityThreshold.splice(i, 1); } } return this.__intensityThreshold; } get intensityThreshold() { return this.__intensityThreshold; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set type(type = "MAX") { if ('MAX' === type) { } else if ('MIN' === type) { } else if ('AVERAGE' === type) { } else { return null; } this.__type = [type]; return this; } addType(type = "MAX") { if ('MAX' === type) { } else if ('MIN' === type) { } else if ('AVERAGE' === type) { } else { return null; } if (this.__type == null) { this.__type = []; } this.__type.append(type); return this; } removeType(type) { for( let i = 0; i < this.__type.length; i++) { if ( this.__type[i] === type) { this.__type.splice(i, 1); } } return this.__type; } get type() { return this.__type; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__silhouetteBoundaryOpacity = silhouetteBoundaryOpacity; var silhouetteRetainedOpacity = kwargs["silhouetteRetainedOpacity"] || 1; if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) { return null; } if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) { return null; } this.__silhouetteRetainedOpacity = silhouetteRetainedOpacity; var silhouetteSharpness = kwargs["silhouetteSharpness"] || 0.5; if (silhouetteSharpness == null || silhouetteSharpness < 0) { return null; } this.__silhouetteSharpness = silhouetteSharpness; var surfaceNormals = kwargs["surfaceNormals"] || null; this.__surfaceNormals = surfaceNormals; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set silhouetteBoundaryOpacity(silhouetteBoundaryOpacity = 0) { if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity < 0) { return null; } if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity > 1) { return null; } this.__silhouetteBoundaryOpacity = [silhouetteBoundaryOpacity]; return this; } addSilhouetteBoundaryOpacity(silhouetteBoundaryOpacity = 0) { if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity < 0) { return null; } if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity > 1) { return null; } if (this.__silhouetteBoundaryOpacity == null) { this.__silhouetteBoundaryOpacity = []; } this.__silhouetteBoundaryOpacity.append(silhouetteBoundaryOpacity); return this; } removeSilhouetteBoundaryOpacity(silhouetteBoundaryOpacity) { for( let i = 0; i < this.__silhouetteBoundaryOpacity.length; i++) { if ( this.__silhouetteBoundaryOpacity[i] === silhouetteBoundaryOpacity) { this.__silhouetteBoundaryOpacity.splice(i, 1); } } return this.__silhouetteBoundaryOpacity; } get silhouetteBoundaryOpacity() { return this.__silhouetteBoundaryOpacity; } set silhouetteRetainedOpacity(silhouetteRetainedOpacity = 1) { if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) { return null; } if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) { return null; } this.__silhouetteRetainedOpacity = [silhouetteRetainedOpacity]; return this; } addSilhouetteRetainedOpacity(silhouetteRetainedOpacity = 1) { if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) { return null; } if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) { return null; } if (this.__silhouetteRetainedOpacity == null) { this.__silhouetteRetainedOpacity = []; } this.__silhouetteRetainedOpacity.append(silhouetteRetainedOpacity); return this; } removeSilhouetteRetainedOpacity(silhouetteRetainedOpacity) { for( let i = 0; i < this.__silhouetteRetainedOpacity.length; i++) { if ( this.__silhouetteRetainedOpacity[i] === silhouetteRetainedOpacity) { this.__silhouetteRetainedOpacity.splice(i, 1); } } return this.__silhouetteRetainedOpacity; } get silhouetteRetainedOpacity() { return this.__silhouetteRetainedOpacity; } set silhouetteSharpness(silhouetteSharpness = 0.5) { if (silhouetteSharpness == null || silhouetteSharpness < 0) { return null; } this.__silhouetteSharpness = [silhouetteSharpness]; return this; } addSilhouetteSharpness(silhouetteSharpness = 0.5) { if (silhouetteSharpness == null || silhouetteSharpness < 0) { return null; } if (this.__silhouetteSharpness == null) { this.__silhouetteSharpness = []; } this.__silhouetteSharpness.append(silhouetteSharpness); return this; } removeSilhouetteSharpness(silhouetteSharpness) { for( let i = 0; i < this.__silhouetteSharpness.length; i++) { if ( this.__silhouetteSharpness[i] === silhouetteSharpness) { this.__silhouetteSharpness.splice(i, 1); } } return this.__silhouetteSharpness; } get silhouetteSharpness() { return this.__silhouetteSharpness; } set surfaceNormals(surfaceNormals = null) { this.__surfaceNormals = [surfaceNormals]; return this; } addSurfaceNormals(surfaceNormals = null) { if (this.__surfaceNormals == null) { this.__surfaceNormals = []; } this.__surfaceNormals.append(surfaceNormals); return this; } removeSurfaceNormals(surfaceNormals) { for( let i = 0; i < this.__surfaceNormals.length; i++) { if ( this.__surfaceNormals[i] === surfaceNormals) { this.__surfaceNormals.splice(i, 1); } } return this.__surfaceNormals; } get surfaceNormals() { return this.__surfaceNormals; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__intensity = intensity; var IS = kwargs["IS"] || null; this.__IS = IS; var location = kwargs["location"] || [0, 0, 0]; this.__location = location; var maxBack = kwargs["maxBack"] || 10; if (maxBack == null || maxBack < 0) { return null; } this.__maxBack = maxBack; var maxFront = kwargs["maxFront"] || 10; if (maxFront == null || maxFront < 0) { return null; } this.__maxFront = maxFront; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var minBack = kwargs["minBack"] || 1; if (minBack == null || minBack < 0) { return null; } this.__minBack = minBack; var minFront = kwargs["minFront"] || 1; if (minFront == null || minFront < 0) { return null; } this.__minFront = minFront; var priority = kwargs["priority"] || 0; if (priority == null || priority < 0) { return null; } if (priority == null || priority > 1) { return null; } this.__priority = priority; var source = kwargs["source"] || null; this.__source = source; var spatialize = kwargs["spatialize"] || true; this.__spatialize = spatialize; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set direction(direction = [0, 0, 1]) { this.__direction = [direction]; return this; } addDirection(direction = [0, 0, 1]) { if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set intensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = [intensity]; return this; } addIntensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } if (this.__intensity == null) { this.__intensity = []; } this.__intensity.append(intensity); return this; } removeIntensity(intensity) { for( let i = 0; i < this.__intensity.length; i++) { if ( this.__intensity[i] === intensity) { this.__intensity.splice(i, 1); } } return this.__intensity; } get intensity() { return this.__intensity; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set location(location = [0, 0, 0]) { this.__location = [location]; return this; } addLocation(location = [0, 0, 0]) { if (this.__location == null) { this.__location = []; } this.__location.append(location); return this; } removeLocation(location) { for( let i = 0; i < this.__location.length; i++) { if ( this.__location[i] === location) { this.__location.splice(i, 1); } } return this.__location; } get location() { return this.__location; } set maxBack(maxBack = 10) { if (maxBack == null || maxBack < 0) { return null; } this.__maxBack = [maxBack]; return this; } addMaxBack(maxBack = 10) { if (maxBack == null || maxBack < 0) { return null; } if (this.__maxBack == null) { this.__maxBack = []; } this.__maxBack.append(maxBack); return this; } removeMaxBack(maxBack) { for( let i = 0; i < this.__maxBack.length; i++) { if ( this.__maxBack[i] === maxBack) { this.__maxBack.splice(i, 1); } } return this.__maxBack; } get maxBack() { return this.__maxBack; } set maxFront(maxFront = 10) { if (maxFront == null || maxFront < 0) { return null; } this.__maxFront = [maxFront]; return this; } addMaxFront(maxFront = 10) { if (maxFront == null || maxFront < 0) { return null; } if (this.__maxFront == null) { this.__maxFront = []; } this.__maxFront.append(maxFront); return this; } removeMaxFront(maxFront) { for( let i = 0; i < this.__maxFront.length; i++) { if ( this.__maxFront[i] === maxFront) { this.__maxFront.splice(i, 1); } } return this.__maxFront; } get maxFront() { return this.__maxFront; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set minBack(minBack = 1) { if (minBack == null || minBack < 0) { return null; } this.__minBack = [minBack]; return this; } addMinBack(minBack = 1) { if (minBack == null || minBack < 0) { return null; } if (this.__minBack == null) { this.__minBack = []; } this.__minBack.append(minBack); return this; } removeMinBack(minBack) { for( let i = 0; i < this.__minBack.length; i++) { if ( this.__minBack[i] === minBack) { this.__minBack.splice(i, 1); } } return this.__minBack; } get minBack() { return this.__minBack; } set minFront(minFront = 1) { if (minFront == null || minFront < 0) { return null; } this.__minFront = [minFront]; return this; } addMinFront(minFront = 1) { if (minFront == null || minFront < 0) { return null; } if (this.__minFront == null) { this.__minFront = []; } this.__minFront.append(minFront); return this; } removeMinFront(minFront) { for( let i = 0; i < this.__minFront.length; i++) { if ( this.__minFront[i] === minFront) { this.__minFront.splice(i, 1); } } return this.__minFront; } get minFront() { return this.__minFront; } set priority(priority = 0) { if (priority == null || priority < 0) { return null; } if (priority == null || priority > 1) { return null; } this.__priority = [priority]; return this; } addPriority(priority = 0) { if (priority == null || priority < 0) { return null; } if (priority == null || priority > 1) { return null; } if (this.__priority == null) { this.__priority = []; } this.__priority.append(priority); return this; } removePriority(priority) { for( let i = 0; i < this.__priority.length; i++) { if ( this.__priority[i] === priority) { this.__priority.splice(i, 1); } } return this.__priority; } get priority() { return this.__priority; } set source(source = null) { this.__source = [source]; return this; } addSource(source = null) { if (this.__source == null) { this.__source = []; } this.__source.append(source); return this; } removeSource(source) { for( let i = 0; i < this.__source.length; i++) { if ( this.__source[i] === source) { this.__source.splice(i, 1); } } return this.__source; } get source() { return this.__source; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var attenuation = kwargs["attenuation"] || [1, 0, 0]; if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } this.__attenuation = attenuation; var beamWidth = kwargs["beamWidth"] || 0.7854; if (beamWidth == null || beamWidth > 1.570796) { return null; } if (beamWidth == null || beamWidth <= 0) { return null; } this.__beamWidth = beamWidth; var color = kwargs["color"] || [1, 1, 1]; if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = color; var cutOffAngle = kwargs["cutOffAngle"] || 1.570796; if (cutOffAngle == null || cutOffAngle > 1.570796) { return null; } if (cutOffAngle == null || cutOffAngle <= 0) { return null; } this.__cutOffAngle = cutOffAngle; var direction = kwargs["direction"] || [0, 0, -1]; this.__direction = direction; var global_ = kwargs["global_"] || true; this.__global_ = global_; var intensity = kwargs["intensity"] || 1; if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = intensity; var IS = kwargs["IS"] || null; this.__IS = IS; var location = kwargs["location"] || [0, 0, 0]; this.__location = location; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var on = kwargs["on"] || true; this.__on = on; var radius = kwargs["radius"] || 100; if (radius == null || radius < 0) { return null; } this.__radius = radius; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set attenuation(attenuation = [1, 0, 0]) { if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } this.__attenuation = [attenuation]; return this; } addAttenuation(attenuation = [1, 0, 0]) { if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) { return null; } if (this.__attenuation == null) { this.__attenuation = []; } this.__attenuation.append(attenuation); return this; } removeAttenuation(attenuation) { for( let i = 0; i < this.__attenuation.length; i++) { if ( this.__attenuation[i] === attenuation) { this.__attenuation.splice(i, 1); } } return this.__attenuation; } get attenuation() { return this.__attenuation; } set beamWidth(beamWidth = 0.7854) { if (beamWidth == null || beamWidth > 1.570796) { return null; } if (beamWidth == null || beamWidth <= 0) { return null; } this.__beamWidth = [beamWidth]; return this; } addBeamWidth(beamWidth = 0.7854) { if (beamWidth == null || beamWidth > 1.570796) { return null; } if (beamWidth == null || beamWidth <= 0) { return null; } if (this.__beamWidth == null) { this.__beamWidth = []; } this.__beamWidth.append(beamWidth); return this; } removeBeamWidth(beamWidth) { for( let i = 0; i < this.__beamWidth.length; i++) { if ( this.__beamWidth[i] === beamWidth) { this.__beamWidth.splice(i, 1); } } return this.__beamWidth; } get beamWidth() { return this.__beamWidth; } set color(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } this.__color = [color]; return this; } addColor(color = [1, 1, 1]) { if (color == null || color.length <= 0 || Math.min(color) < 0) { return null; } if (color == null || color.length <= 0 || Math.max(color) > 1) { return null; } if (this.__color == null) { this.__color = []; } this.__color.append(color); return this; } removeColor(color) { for( let i = 0; i < this.__color.length; i++) { if ( this.__color[i] === color) { this.__color.splice(i, 1); } } return this.__color; } get color() { return this.__color; } set cutOffAngle(cutOffAngle = 1.570796) { if (cutOffAngle == null || cutOffAngle > 1.570796) { return null; } if (cutOffAngle == null || cutOffAngle <= 0) { return null; } this.__cutOffAngle = [cutOffAngle]; return this; } addCutOffAngle(cutOffAngle = 1.570796) { if (cutOffAngle == null || cutOffAngle > 1.570796) { return null; } if (cutOffAngle == null || cutOffAngle <= 0) { return null; } if (this.__cutOffAngle == null) { this.__cutOffAngle = []; } this.__cutOffAngle.append(cutOffAngle); return this; } removeCutOffAngle(cutOffAngle) { for( let i = 0; i < this.__cutOffAngle.length; i++) { if ( this.__cutOffAngle[i] === cutOffAngle) { this.__cutOffAngle.splice(i, 1); } } return this.__cutOffAngle; } get cutOffAngle() { return this.__cutOffAngle; } set direction(direction = [0, 0, -1]) { this.__direction = [direction]; return this; } addDirection(direction = [0, 0, -1]) { if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set global(global_ = true) { this.__global_ = [global_]; return this; } addGlobal(global_ = true) { if (this.__global_ == null) { this.__global_ = []; } this.__global_.append(global_); return this; } removeGlobal(global_) { for( let i = 0; i < this.__global_.length; i++) { if ( this.__global_[i] === global_) { this.__global_.splice(i, 1); } } return this.__global_; } get isGlobal() { return this.__global_; } set intensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } this.__intensity = [intensity]; return this; } addIntensity(intensity = 1) { if (intensity == null || intensity < 0) { return null; } if (intensity == null || intensity > 1) { return null; } if (this.__intensity == null) { this.__intensity = []; } this.__intensity.append(intensity); return this; } removeIntensity(intensity) { for( let i = 0; i < this.__intensity.length; i++) { if ( this.__intensity[i] === intensity) { this.__intensity.splice(i, 1); } } return this.__intensity; } get intensity() { return this.__intensity; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set location(location = [0, 0, 0]) { this.__location = [location]; return this; } addLocation(location = [0, 0, 0]) { if (this.__location == null) { this.__location = []; } this.__location.append(location); return this; } removeLocation(location) { for( let i = 0; i < this.__location.length; i++) { if ( this.__location[i] === location) { this.__location.splice(i, 1); } } return this.__location; } get location() { return this.__location; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set on(on = true) { this.__on = [on]; return this; } addOn(on = true) { if (this.__on == null) { this.__on = []; } this.__on.append(on); return this; } removeOn(on) { for( let i = 0; i < this.__on.length; i++) { if ( this.__on[i] === on) { this.__on.splice(i, 1); } } return this.__on; } get isOn() { return this.__on; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__order = order; var destination = kwargs["destination"] || null; this.__destination = destination; var value = kwargs["value"] || null; this.__value = value; var tau = kwargs["tau"] || 0.3; if (tau == null || tau < 0) { return null; } this.__tau = tau; var tolerance = kwargs["tolerance"] || -1; this.__tolerance = tolerance; var value_changed = kwargs["value_changed"] || null; this.__value_changed = value_changed; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isActive() { return this.__Active; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_destination(destination = null) { this.__destination = [destination]; return this; } set set_value(value = null) { this.__value = [value]; return this; } set tau(tau = 0.3) { if (tau == null || tau < 0) { return null; } this.__tau = [tau]; return this; } addTau(tau = 0.3) { if (tau == null || tau < 0) { return null; } if (this.__tau == null) { this.__tau = []; } this.__tau.append(tau); return this; } removeTau(tau) { for( let i = 0; i < this.__tau.length; i++) { if ( this.__tau[i] === tau) { this.__tau.splice(i, 1); } } return this.__tau; } get tau() { return this.__tau; } set tolerance(tolerance = -1) { this.__tolerance = [tolerance]; return this; } addTolerance(tolerance = -1) { if (this.__tolerance == null) { this.__tolerance = []; } this.__tolerance.append(tolerance); return this; } removeTolerance(tolerance) { for( let i = 0; i < this.__tolerance.length; i++) { if ( this.__tolerance[i] === tolerance) { this.__tolerance.splice(i, 1); } } return this.__tolerance; } get tolerance() { return this.__tolerance; } removevalue_changed(value_changed) { for( let i = 0; i < this.__value_changed.length; i++) { if ( this.__value_changed[i] === value_changed) { this.__value_changed.splice(i, 1); } } return this.__value_changed; } get value_changed() { return this.__value_changed; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1.5708) { return null; } this.__groundAngle = groundAngle; var groundColor = kwargs["groundColor"] || null; if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = groundColor; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var leftTexture = kwargs["leftTexture"] || null; this.__leftTexture = leftTexture; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var rightTexture = kwargs["rightTexture"] || null; this.__rightTexture = rightTexture; var bind = kwargs["bind"] || null; this.__bind = bind; var skyAngle = kwargs["skyAngle"] || null; if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = skyAngle; var skyColor = kwargs["skyColor"] || [0, 0, 0]; if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = skyColor; var topTexture = kwargs["topTexture"] || null; this.__topTexture = topTexture; var transparency = kwargs["transparency"] || 0; if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = transparency; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set backTexture(backTexture = null) { this.__backTexture = [backTexture]; return this; } addBackTexture(backTexture = null) { if (this.__backTexture == null) { this.__backTexture = []; } this.__backTexture.append(backTexture); return this; } removeBackTexture(backTexture) { for( let i = 0; i < this.__backTexture.length; i++) { if ( this.__backTexture[i] === backTexture) { this.__backTexture.splice(i, 1); } } return this.__backTexture; } get backTexture() { return this.__backTexture; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set bottomTexture(bottomTexture = null) { this.__bottomTexture = [bottomTexture]; return this; } addBottomTexture(bottomTexture = null) { if (this.__bottomTexture == null) { this.__bottomTexture = []; } this.__bottomTexture.append(bottomTexture); return this; } removeBottomTexture(bottomTexture) { for( let i = 0; i < this.__bottomTexture.length; i++) { if ( this.__bottomTexture[i] === bottomTexture) { this.__bottomTexture.splice(i, 1); } } return this.__bottomTexture; } get bottomTexture() { return this.__bottomTexture; } set frontTexture(frontTexture = null) { this.__frontTexture = [frontTexture]; return this; } addFrontTexture(frontTexture = null) { if (this.__frontTexture == null) { this.__frontTexture = []; } this.__frontTexture.append(frontTexture); return this; } removeFrontTexture(frontTexture) { for( let i = 0; i < this.__frontTexture.length; i++) { if ( this.__frontTexture[i] === frontTexture) { this.__frontTexture.splice(i, 1); } } return this.__frontTexture; } get frontTexture() { return this.__frontTexture; } set groundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } this.__groundAngle = [groundAngle]; return this; } addGroundAngle(groundAngle = null) { if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) { return null; } if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) { return null; } if (this.__groundAngle == null) { this.__groundAngle = []; } this.__groundAngle.append(groundAngle); return this; } removeGroundAngle(groundAngle) { for( let i = 0; i < this.__groundAngle.length; i++) { if ( this.__groundAngle[i] === groundAngle) { this.__groundAngle.splice(i, 1); } } return this.__groundAngle; } get groundAngle() { return this.__groundAngle; } set groundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } this.__groundColor = [groundColor]; return this; } addGroundColor(groundColor = null) { if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) { return null; } if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) { return null; } if (this.__groundColor == null) { this.__groundColor = []; } this.__groundColor.append(groundColor); return this; } removeGroundColor(groundColor) { for( let i = 0; i < this.__groundColor.length; i++) { if ( this.__groundColor[i] === groundColor) { this.__groundColor.splice(i, 1); } } return this.__groundColor; } get groundColor() { return this.__groundColor; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set leftTexture(leftTexture = null) { this.__leftTexture = [leftTexture]; return this; } addLeftTexture(leftTexture = null) { if (this.__leftTexture == null) { this.__leftTexture = []; } this.__leftTexture.append(leftTexture); return this; } removeLeftTexture(leftTexture) { for( let i = 0; i < this.__leftTexture.length; i++) { if ( this.__leftTexture[i] === leftTexture) { this.__leftTexture.splice(i, 1); } } return this.__leftTexture; } get leftTexture() { return this.__leftTexture; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set rightTexture(rightTexture = null) { this.__rightTexture = [rightTexture]; return this; } addRightTexture(rightTexture = null) { if (this.__rightTexture == null) { this.__rightTexture = []; } this.__rightTexture.append(rightTexture); return this; } removeRightTexture(rightTexture) { for( let i = 0; i < this.__rightTexture.length; i++) { if ( this.__rightTexture[i] === rightTexture) { this.__rightTexture.splice(i, 1); } } return this.__rightTexture; } get rightTexture() { return this.__rightTexture; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set skyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } this.__skyAngle = [skyAngle]; return this; } addSkyAngle(skyAngle = null) { if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) { return null; } if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) { return null; } if (this.__skyAngle == null) { this.__skyAngle = []; } this.__skyAngle.append(skyAngle); return this; } removeSkyAngle(skyAngle) { for( let i = 0; i < this.__skyAngle.length; i++) { if ( this.__skyAngle[i] === skyAngle) { this.__skyAngle.splice(i, 1); } } return this.__skyAngle; } get skyAngle() { return this.__skyAngle; } set skyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } this.__skyColor = [skyColor]; return this; } addSkyColor(skyColor = [0, 0, 0]) { if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) { return null; } if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) { return null; } if (this.__skyColor == null) { this.__skyColor = []; } this.__skyColor.append(skyColor); return this; } removeSkyColor(skyColor) { for( let i = 0; i < this.__skyColor.length; i++) { if ( this.__skyColor[i] === skyColor) { this.__skyColor.splice(i, 1); } } return this.__skyColor; } get skyColor() { return this.__skyColor; } set topTexture(topTexture = null) { this.__topTexture = [topTexture]; return this; } addTopTexture(topTexture = null) { if (this.__topTexture == null) { this.__topTexture = []; } this.__topTexture.append(topTexture); return this; } removeTopTexture(topTexture) { for( let i = 0; i < this.__topTexture.length; i++) { if ( this.__topTexture[i] === topTexture) { this.__topTexture.splice(i, 1); } } return this.__topTexture; } get topTexture() { return this.__topTexture; } set transparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = [transparency]; return this; } addTransparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } if (this.__transparency == null) { this.__transparency = []; } this.__transparency.append(transparency); return this; } removeTransparency(transparency) { for( let i = 0; i < this.__transparency.length; i++) { if ( this.__transparency[i] === transparency) { this.__transparency.splice(i, 1); } } return this.__transparency; } get transparency() { return this.__transparency; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__borderColor = borderColor; var borderWidth = kwargs["borderWidth"] || 0; if (borderWidth == null || borderWidth < 0) { return null; } this.__borderWidth = borderWidth; var boundaryModeR = kwargs["boundaryModeR"] || "REPEAT"; if ('CLAMP' === boundaryModeR) { } else if ('CLAMP_TO_EDGE' === boundaryModeR) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) { } else if ('MIRRORED_REPEAT' === boundaryModeR) { } else if ('REPEAT' === boundaryModeR) { } else { return null; } this.__boundaryModeR = boundaryModeR; var boundaryModeS = kwargs["boundaryModeS"] || "REPEAT"; if ('CLAMP' === boundaryModeS) { } else if ('CLAMP_TO_EDGE' === boundaryModeS) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) { } else if ('MIRRORED_REPEAT' === boundaryModeS) { } else if ('REPEAT' === boundaryModeS) { } else { return null; } this.__boundaryModeS = boundaryModeS; var boundaryModeT = kwargs["boundaryModeT"] || "REPEAT"; if ('CLAMP' === boundaryModeT) { } else if ('CLAMP_TO_EDGE' === boundaryModeT) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) { } else if ('MIRRORED_REPEAT' === boundaryModeT) { } else if ('REPEAT' === boundaryModeT) { } else { return null; } this.__boundaryModeT = boundaryModeT; var generateMipMaps = kwargs["generateMipMaps"] || false; this.__generateMipMaps = generateMipMaps; var IS = kwargs["IS"] || null; this.__IS = IS; var magnificationFilter = kwargs["magnificationFilter"] || "FASTEST"; if ('AVG_PIXEL' === magnificationFilter) { } else if ('DEFAULT' === magnificationFilter) { } else if ('FASTEST' === magnificationFilter) { } else if ('NEAREST_PIXEL' === magnificationFilter) { } else if ('NICEST' === magnificationFilter) { } else { return null; } this.__magnificationFilter = magnificationFilter; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var minificationFilter = kwargs["minificationFilter"] || "FASTEST"; if ('AVG_PIXEL' === minificationFilter) { } else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('DEFAULT' === minificationFilter) { } else if ('FASTEST' === minificationFilter) { } else if ('NEAREST_PIXEL' === minificationFilter) { } else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('NICEST' === minificationFilter) { } else { return null; } this.__minificationFilter = minificationFilter; var textureCompression = kwargs["textureCompression"] || "FASTEST"; if ('DEFAULT' === textureCompression) { } else if ('FASTEST' === textureCompression) { } else if ('HIGH' === textureCompression) { } else if ('LOW' === textureCompression) { } else if ('MEDIUM' === textureCompression) { } else if ('NICEST' === textureCompression) { } else { return null; } this.__textureCompression = textureCompression; var texturePriority = kwargs["texturePriority"] || 0; if (texturePriority == null || texturePriority < 0) { return null; } if (texturePriority == null || texturePriority > 1) { return null; } this.__texturePriority = texturePriority; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set anisotropicDegree(anisotropicDegree = 1) { if (anisotropicDegree == null || anisotropicDegree < 1) { return null; } this.__anisotropicDegree = [anisotropicDegree]; return this; } addAnisotropicDegree(anisotropicDegree = 1) { if (anisotropicDegree == null || anisotropicDegree < 1) { return null; } if (this.__anisotropicDegree == null) { this.__anisotropicDegree = []; } this.__anisotropicDegree.append(anisotropicDegree); return this; } removeAnisotropicDegree(anisotropicDegree) { for( let i = 0; i < this.__anisotropicDegree.length; i++) { if ( this.__anisotropicDegree[i] === anisotropicDegree) { this.__anisotropicDegree.splice(i, 1); } } return this.__anisotropicDegree; } get anisotropicDegree() { return this.__anisotropicDegree; } set borderColor(borderColor = [0, 0, 0, 0]) { if (borderColor == null || borderColor < 0) { return null; } if (borderColor == null || borderColor > 1) { return null; } this.__borderColor = [borderColor]; return this; } addBorderColor(borderColor = [0, 0, 0, 0]) { if (borderColor == null || borderColor < 0) { return null; } if (borderColor == null || borderColor > 1) { return null; } if (this.__borderColor == null) { this.__borderColor = []; } this.__borderColor.append(borderColor); return this; } removeBorderColor(borderColor) { for( let i = 0; i < this.__borderColor.length; i++) { if ( this.__borderColor[i] === borderColor) { this.__borderColor.splice(i, 1); } } return this.__borderColor; } get borderColor() { return this.__borderColor; } set borderWidth(borderWidth = 0) { if (borderWidth == null || borderWidth < 0) { return null; } this.__borderWidth = [borderWidth]; return this; } addBorderWidth(borderWidth = 0) { if (borderWidth == null || borderWidth < 0) { return null; } if (this.__borderWidth == null) { this.__borderWidth = []; } this.__borderWidth.append(borderWidth); return this; } removeBorderWidth(borderWidth) { for( let i = 0; i < this.__borderWidth.length; i++) { if ( this.__borderWidth[i] === borderWidth) { this.__borderWidth.splice(i, 1); } } return this.__borderWidth; } get borderWidth() { return this.__borderWidth; } set boundaryModeR(boundaryModeR = "REPEAT") { if ('CLAMP' === boundaryModeR) { } else if ('CLAMP_TO_EDGE' === boundaryModeR) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) { } else if ('MIRRORED_REPEAT' === boundaryModeR) { } else if ('REPEAT' === boundaryModeR) { } else { return null; } this.__boundaryModeR = [boundaryModeR]; return this; } addBoundaryModeR(boundaryModeR = "REPEAT") { if ('CLAMP' === boundaryModeR) { } else if ('CLAMP_TO_EDGE' === boundaryModeR) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) { } else if ('MIRRORED_REPEAT' === boundaryModeR) { } else if ('REPEAT' === boundaryModeR) { } else { return null; } if (this.__boundaryModeR == null) { this.__boundaryModeR = []; } this.__boundaryModeR.append(boundaryModeR); return this; } removeBoundaryModeR(boundaryModeR) { for( let i = 0; i < this.__boundaryModeR.length; i++) { if ( this.__boundaryModeR[i] === boundaryModeR) { this.__boundaryModeR.splice(i, 1); } } return this.__boundaryModeR; } get boundaryModeR() { return this.__boundaryModeR; } set boundaryModeS(boundaryModeS = "REPEAT") { if ('CLAMP' === boundaryModeS) { } else if ('CLAMP_TO_EDGE' === boundaryModeS) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) { } else if ('MIRRORED_REPEAT' === boundaryModeS) { } else if ('REPEAT' === boundaryModeS) { } else { return null; } this.__boundaryModeS = [boundaryModeS]; return this; } addBoundaryModeS(boundaryModeS = "REPEAT") { if ('CLAMP' === boundaryModeS) { } else if ('CLAMP_TO_EDGE' === boundaryModeS) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) { } else if ('MIRRORED_REPEAT' === boundaryModeS) { } else if ('REPEAT' === boundaryModeS) { } else { return null; } if (this.__boundaryModeS == null) { this.__boundaryModeS = []; } this.__boundaryModeS.append(boundaryModeS); return this; } removeBoundaryModeS(boundaryModeS) { for( let i = 0; i < this.__boundaryModeS.length; i++) { if ( this.__boundaryModeS[i] === boundaryModeS) { this.__boundaryModeS.splice(i, 1); } } return this.__boundaryModeS; } get boundaryModeS() { return this.__boundaryModeS; } set boundaryModeT(boundaryModeT = "REPEAT") { if ('CLAMP' === boundaryModeT) { } else if ('CLAMP_TO_EDGE' === boundaryModeT) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) { } else if ('MIRRORED_REPEAT' === boundaryModeT) { } else if ('REPEAT' === boundaryModeT) { } else { return null; } this.__boundaryModeT = [boundaryModeT]; return this; } addBoundaryModeT(boundaryModeT = "REPEAT") { if ('CLAMP' === boundaryModeT) { } else if ('CLAMP_TO_EDGE' === boundaryModeT) { } else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) { } else if ('MIRRORED_REPEAT' === boundaryModeT) { } else if ('REPEAT' === boundaryModeT) { } else { return null; } if (this.__boundaryModeT == null) { this.__boundaryModeT = []; } this.__boundaryModeT.append(boundaryModeT); return this; } removeBoundaryModeT(boundaryModeT) { for( let i = 0; i < this.__boundaryModeT.length; i++) { if ( this.__boundaryModeT[i] === boundaryModeT) { this.__boundaryModeT.splice(i, 1); } } return this.__boundaryModeT; } get boundaryModeT() { return this.__boundaryModeT; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set magnificationFilter(magnificationFilter = "FASTEST") { if ('AVG_PIXEL' === magnificationFilter) { } else if ('DEFAULT' === magnificationFilter) { } else if ('FASTEST' === magnificationFilter) { } else if ('NEAREST_PIXEL' === magnificationFilter) { } else if ('NICEST' === magnificationFilter) { } else { return null; } this.__magnificationFilter = [magnificationFilter]; return this; } addMagnificationFilter(magnificationFilter = "FASTEST") { if ('AVG_PIXEL' === magnificationFilter) { } else if ('DEFAULT' === magnificationFilter) { } else if ('FASTEST' === magnificationFilter) { } else if ('NEAREST_PIXEL' === magnificationFilter) { } else if ('NICEST' === magnificationFilter) { } else { return null; } if (this.__magnificationFilter == null) { this.__magnificationFilter = []; } this.__magnificationFilter.append(magnificationFilter); return this; } removeMagnificationFilter(magnificationFilter) { for( let i = 0; i < this.__magnificationFilter.length; i++) { if ( this.__magnificationFilter[i] === magnificationFilter) { this.__magnificationFilter.splice(i, 1); } } return this.__magnificationFilter; } get magnificationFilter() { return this.__magnificationFilter; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set minificationFilter(minificationFilter = "FASTEST") { if ('AVG_PIXEL' === minificationFilter) { } else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('DEFAULT' === minificationFilter) { } else if ('FASTEST' === minificationFilter) { } else if ('NEAREST_PIXEL' === minificationFilter) { } else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('NICEST' === minificationFilter) { } else { return null; } this.__minificationFilter = [minificationFilter]; return this; } addMinificationFilter(minificationFilter = "FASTEST") { if ('AVG_PIXEL' === minificationFilter) { } else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('DEFAULT' === minificationFilter) { } else if ('FASTEST' === minificationFilter) { } else if ('NEAREST_PIXEL' === minificationFilter) { } else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) { } else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) { } else if ('NICEST' === minificationFilter) { } else { return null; } if (this.__minificationFilter == null) { this.__minificationFilter = []; } this.__minificationFilter.append(minificationFilter); return this; } removeMinificationFilter(minificationFilter) { for( let i = 0; i < this.__minificationFilter.length; i++) { if ( this.__minificationFilter[i] === minificationFilter) { this.__minificationFilter.splice(i, 1); } } return this.__minificationFilter; } get minificationFilter() { return this.__minificationFilter; } set textureCompression(textureCompression = "FASTEST") { if ('DEFAULT' === textureCompression) { } else if ('FASTEST' === textureCompression) { } else if ('HIGH' === textureCompression) { } else if ('LOW' === textureCompression) { } else if ('MEDIUM' === textureCompression) { } else if ('NICEST' === textureCompression) { } else { return null; } this.__textureCompression = [textureCompression]; return this; } addTextureCompression(textureCompression = "FASTEST") { if ('DEFAULT' === textureCompression) { } else if ('FASTEST' === textureCompression) { } else if ('HIGH' === textureCompression) { } else if ('LOW' === textureCompression) { } else if ('MEDIUM' === textureCompression) { } else if ('NICEST' === textureCompression) { } else { return null; } if (this.__textureCompression == null) { this.__textureCompression = []; } this.__textureCompression.append(textureCompression); return this; } removeTextureCompression(textureCompression) { for( let i = 0; i < this.__textureCompression.length; i++) { if ( this.__textureCompression[i] === textureCompression) { this.__textureCompression.splice(i, 1); } } return this.__textureCompression; } get textureCompression() { return this.__textureCompression; } set texturePriority(texturePriority = 0) { if (texturePriority == null || texturePriority < 0) { return null; } if (texturePriority == null || texturePriority > 1) { return null; } this.__texturePriority = [texturePriority]; return this; } addTexturePriority(texturePriority = 0) { if (texturePriority == null || texturePriority < 0) { return null; } if (texturePriority == null || texturePriority > 1) { return null; } if (this.__texturePriority == null) { this.__texturePriority = []; } this.__texturePriority.append(texturePriority); return this; } removeTexturePriority(texturePriority) { for( let i = 0; i < this.__texturePriority.length; i++) { if ( this.__texturePriority[i] === texturePriority) { this.__texturePriority.splice(i, 1); } } return this.__texturePriority; } get texturePriority() { return this.__texturePriority; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__coolColor = coolColor; var enabled = kwargs["enabled"] || true; this.__enabled = enabled; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var surfaceNormals = kwargs["surfaceNormals"] || null; this.__surfaceNormals = surfaceNormals; var warmColor = kwargs["warmColor"] || [1, 1, 0, 0]; if (warmColor == null || warmColor < 0) { return null; } if (warmColor == null || warmColor > 1) { return null; } this.__warmColor = warmColor; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set coolColor(coolColor = [0, 0, 1, 0]) { if (coolColor == null || coolColor < 0) { return null; } if (coolColor == null || coolColor > 1) { return null; } this.__coolColor = [coolColor]; return this; } addCoolColor(coolColor = [0, 0, 1, 0]) { if (coolColor == null || coolColor < 0) { return null; } if (coolColor == null || coolColor > 1) { return null; } if (this.__coolColor == null) { this.__coolColor = []; } this.__coolColor.append(coolColor); return this; } removeCoolColor(coolColor) { for( let i = 0; i < this.__coolColor.length; i++) { if ( this.__coolColor[i] === coolColor) { this.__coolColor.splice(i, 1); } } return this.__coolColor; } get coolColor() { return this.__coolColor; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set surfaceNormals(surfaceNormals = null) { this.__surfaceNormals = [surfaceNormals]; return this; } addSurfaceNormals(surfaceNormals = null) { if (this.__surfaceNormals == null) { this.__surfaceNormals = []; } this.__surfaceNormals.append(surfaceNormals); return this; } removeSurfaceNormals(surfaceNormals) { for( let i = 0; i < this.__surfaceNormals.length; i++) { if ( this.__surfaceNormals[i] === surfaceNormals) { this.__surfaceNormals.splice(i, 1); } } return this.__surfaceNormals; } get surfaceNormals() { return this.__surfaceNormals; } set warmColor(warmColor = [1, 1, 0, 0]) { if (warmColor == null || warmColor < 0) { return null; } if (warmColor == null || warmColor > 1) { return null; } this.__warmColor = [warmColor]; return this; } addWarmColor(warmColor = [1, 1, 0, 0]) { if (warmColor == null || warmColor < 0) { return null; } if (warmColor == null || warmColor > 1) { return null; } if (this.__warmColor == null) { this.__warmColor = []; } this.__warmColor.append(warmColor); return this; } removeWarmColor(warmColor) { for( let i = 0; i < this.__warmColor.length; i++) { if ( this.__warmColor[i] === warmColor) { this.__warmColor.splice(i, 1); } } return this.__warmColor; } get warmColor() { return this.__warmColor; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__ambientIntensity = ambientIntensity; var backAmbientIntensity = kwargs["backAmbientIntensity"] || 0.2; if (backAmbientIntensity == null || backAmbientIntensity < 0) { return null; } if (backAmbientIntensity == null || backAmbientIntensity > 1) { return null; } this.__backAmbientIntensity = backAmbientIntensity; var backDiffuseColor = kwargs["backDiffuseColor"] || [0.8, 0.8, 0.8]; if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) { return null; } if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) { return null; } this.__backDiffuseColor = backDiffuseColor; var backEmissiveColor = kwargs["backEmissiveColor"] || [0, 0, 0]; if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) { return null; } if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) { return null; } this.__backEmissiveColor = backEmissiveColor; var backShininess = kwargs["backShininess"] || 0.2; if (backShininess == null || backShininess < 0) { return null; } if (backShininess == null || backShininess > 1) { return null; } this.__backShininess = backShininess; var backSpecularColor = kwargs["backSpecularColor"] || [0, 0, 0]; if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) { return null; } if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) { return null; } this.__backSpecularColor = backSpecularColor; var backTransparency = kwargs["backTransparency"] || 0; if (backTransparency == null || backTransparency < 0) { return null; } if (backTransparency == null || backTransparency > 1) { return null; } this.__backTransparency = backTransparency; var diffuseColor = kwargs["diffuseColor"] || [0.8, 0.8, 0.8]; if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } this.__diffuseColor = diffuseColor; var emissiveColor = kwargs["emissiveColor"] || [0, 0, 0]; if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } this.__emissiveColor = emissiveColor; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var separateBackColor = kwargs["separateBackColor"] || false; this.__separateBackColor = separateBackColor; var shininess = kwargs["shininess"] || 0.2; if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } this.__shininess = shininess; var specularColor = kwargs["specularColor"] || [0, 0, 0]; if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } this.__specularColor = specularColor; var transparency = kwargs["transparency"] || 0; if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = transparency; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set ambientIntensity(ambientIntensity = 0.2) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } this.__ambientIntensity = [ambientIntensity]; return this; } addAmbientIntensity(ambientIntensity = 0.2) { if (ambientIntensity == null || ambientIntensity < 0) { return null; } if (ambientIntensity == null || ambientIntensity > 1) { return null; } if (this.__ambientIntensity == null) { this.__ambientIntensity = []; } this.__ambientIntensity.append(ambientIntensity); return this; } removeAmbientIntensity(ambientIntensity) { for( let i = 0; i < this.__ambientIntensity.length; i++) { if ( this.__ambientIntensity[i] === ambientIntensity) { this.__ambientIntensity.splice(i, 1); } } return this.__ambientIntensity; } get ambientIntensity() { return this.__ambientIntensity; } set backAmbientIntensity(backAmbientIntensity = 0.2) { if (backAmbientIntensity == null || backAmbientIntensity < 0) { return null; } if (backAmbientIntensity == null || backAmbientIntensity > 1) { return null; } this.__backAmbientIntensity = [backAmbientIntensity]; return this; } addBackAmbientIntensity(backAmbientIntensity = 0.2) { if (backAmbientIntensity == null || backAmbientIntensity < 0) { return null; } if (backAmbientIntensity == null || backAmbientIntensity > 1) { return null; } if (this.__backAmbientIntensity == null) { this.__backAmbientIntensity = []; } this.__backAmbientIntensity.append(backAmbientIntensity); return this; } removeBackAmbientIntensity(backAmbientIntensity) { for( let i = 0; i < this.__backAmbientIntensity.length; i++) { if ( this.__backAmbientIntensity[i] === backAmbientIntensity) { this.__backAmbientIntensity.splice(i, 1); } } return this.__backAmbientIntensity; } get backAmbientIntensity() { return this.__backAmbientIntensity; } set backDiffuseColor(backDiffuseColor = [0.8, 0.8, 0.8]) { if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) { return null; } if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) { return null; } this.__backDiffuseColor = [backDiffuseColor]; return this; } addBackDiffuseColor(backDiffuseColor = [0.8, 0.8, 0.8]) { if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) { return null; } if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) { return null; } if (this.__backDiffuseColor == null) { this.__backDiffuseColor = []; } this.__backDiffuseColor.append(backDiffuseColor); return this; } removeBackDiffuseColor(backDiffuseColor) { for( let i = 0; i < this.__backDiffuseColor.length; i++) { if ( this.__backDiffuseColor[i] === backDiffuseColor) { this.__backDiffuseColor.splice(i, 1); } } return this.__backDiffuseColor; } get backDiffuseColor() { return this.__backDiffuseColor; } set backEmissiveColor(backEmissiveColor = [0, 0, 0]) { if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) { return null; } if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) { return null; } this.__backEmissiveColor = [backEmissiveColor]; return this; } addBackEmissiveColor(backEmissiveColor = [0, 0, 0]) { if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) { return null; } if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) { return null; } if (this.__backEmissiveColor == null) { this.__backEmissiveColor = []; } this.__backEmissiveColor.append(backEmissiveColor); return this; } removeBackEmissiveColor(backEmissiveColor) { for( let i = 0; i < this.__backEmissiveColor.length; i++) { if ( this.__backEmissiveColor[i] === backEmissiveColor) { this.__backEmissiveColor.splice(i, 1); } } return this.__backEmissiveColor; } get backEmissiveColor() { return this.__backEmissiveColor; } set backShininess(backShininess = 0.2) { if (backShininess == null || backShininess < 0) { return null; } if (backShininess == null || backShininess > 1) { return null; } this.__backShininess = [backShininess]; return this; } addBackShininess(backShininess = 0.2) { if (backShininess == null || backShininess < 0) { return null; } if (backShininess == null || backShininess > 1) { return null; } if (this.__backShininess == null) { this.__backShininess = []; } this.__backShininess.append(backShininess); return this; } removeBackShininess(backShininess) { for( let i = 0; i < this.__backShininess.length; i++) { if ( this.__backShininess[i] === backShininess) { this.__backShininess.splice(i, 1); } } return this.__backShininess; } get backShininess() { return this.__backShininess; } set backSpecularColor(backSpecularColor = [0, 0, 0]) { if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) { return null; } if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) { return null; } this.__backSpecularColor = [backSpecularColor]; return this; } addBackSpecularColor(backSpecularColor = [0, 0, 0]) { if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) { return null; } if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) { return null; } if (this.__backSpecularColor == null) { this.__backSpecularColor = []; } this.__backSpecularColor.append(backSpecularColor); return this; } removeBackSpecularColor(backSpecularColor) { for( let i = 0; i < this.__backSpecularColor.length; i++) { if ( this.__backSpecularColor[i] === backSpecularColor) { this.__backSpecularColor.splice(i, 1); } } return this.__backSpecularColor; } get backSpecularColor() { return this.__backSpecularColor; } set backTransparency(backTransparency = 0) { if (backTransparency == null || backTransparency < 0) { return null; } if (backTransparency == null || backTransparency > 1) { return null; } this.__backTransparency = [backTransparency]; return this; } addBackTransparency(backTransparency = 0) { if (backTransparency == null || backTransparency < 0) { return null; } if (backTransparency == null || backTransparency > 1) { return null; } if (this.__backTransparency == null) { this.__backTransparency = []; } this.__backTransparency.append(backTransparency); return this; } removeBackTransparency(backTransparency) { for( let i = 0; i < this.__backTransparency.length; i++) { if ( this.__backTransparency[i] === backTransparency) { this.__backTransparency.splice(i, 1); } } return this.__backTransparency; } get backTransparency() { return this.__backTransparency; } set diffuseColor(diffuseColor = [0.8, 0.8, 0.8]) { if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } this.__diffuseColor = [diffuseColor]; return this; } addDiffuseColor(diffuseColor = [0.8, 0.8, 0.8]) { if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) { return null; } if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) { return null; } if (this.__diffuseColor == null) { this.__diffuseColor = []; } this.__diffuseColor.append(diffuseColor); return this; } removeDiffuseColor(diffuseColor) { for( let i = 0; i < this.__diffuseColor.length; i++) { if ( this.__diffuseColor[i] === diffuseColor) { this.__diffuseColor.splice(i, 1); } } return this.__diffuseColor; } get diffuseColor() { return this.__diffuseColor; } set emissiveColor(emissiveColor = [0, 0, 0]) { if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } this.__emissiveColor = [emissiveColor]; return this; } addEmissiveColor(emissiveColor = [0, 0, 0]) { if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) { return null; } if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) { return null; } if (this.__emissiveColor == null) { this.__emissiveColor = []; } this.__emissiveColor.append(emissiveColor); return this; } removeEmissiveColor(emissiveColor) { for( let i = 0; i < this.__emissiveColor.length; i++) { if ( this.__emissiveColor[i] === emissiveColor) { this.__emissiveColor.splice(i, 1); } } return this.__emissiveColor; } get emissiveColor() { return this.__emissiveColor; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set separateBackColor(separateBackColor = false) { this.__separateBackColor = [separateBackColor]; return this; } addSeparateBackColor(separateBackColor = false) { if (this.__separateBackColor == null) { this.__separateBackColor = []; } this.__separateBackColor.append(separateBackColor); return this; } removeSeparateBackColor(separateBackColor) { for( let i = 0; i < this.__separateBackColor.length; i++) { if ( this.__separateBackColor[i] === separateBackColor) { this.__separateBackColor.splice(i, 1); } } return this.__separateBackColor; } get isSeparateBackColor() { return this.__separateBackColor; } set shininess(shininess = 0.2) { if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } this.__shininess = [shininess]; return this; } addShininess(shininess = 0.2) { if (shininess == null || shininess < 0) { return null; } if (shininess == null || shininess > 1) { return null; } if (this.__shininess == null) { this.__shininess = []; } this.__shininess.append(shininess); return this; } removeShininess(shininess) { for( let i = 0; i < this.__shininess.length; i++) { if ( this.__shininess[i] === shininess) { this.__shininess.splice(i, 1); } } return this.__shininess; } get shininess() { return this.__shininess; } set specularColor(specularColor = [0, 0, 0]) { if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } this.__specularColor = [specularColor]; return this; } addSpecularColor(specularColor = [0, 0, 0]) { if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) { return null; } if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) { return null; } if (this.__specularColor == null) { this.__specularColor = []; } this.__specularColor.append(specularColor); return this; } removeSpecularColor(specularColor) { for( let i = 0; i < this.__specularColor.length; i++) { if ( this.__specularColor[i] === specularColor) { this.__specularColor.splice(i, 1); } } return this.__specularColor; } get specularColor() { return this.__specularColor; } set transparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } this.__transparency = [transparency]; return this; } addTransparency(transparency = 0) { if (transparency == null || transparency < 0) { return null; } if (transparency == null || transparency > 1) { return null; } if (this.__transparency == null) { this.__transparency = []; } this.__transparency.append(transparency); return this; } removeTransparency(transparency) { for( let i = 0; i < this.__transparency.length; i++) { if ( this.__transparency[i] === transparency) { this.__transparency.splice(i, 1); } } return this.__transparency; } get transparency() { return this.__transparency; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__stop1Bounce = stop1Bounce; var stop1ErrorCorrection = kwargs["stop1ErrorCorrection"] || 0.8; if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) { return null; } if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) { return null; } this.__stop1ErrorCorrection = stop1ErrorCorrection; var stop2Bounce = kwargs["stop2Bounce"] || 0; if (stop2Bounce == null || stop2Bounce < 0) { return null; } if (stop2Bounce == null || stop2Bounce > 1) { return null; } this.__stop2Bounce = stop2Bounce; var stop2ErrorCorrection = kwargs["stop2ErrorCorrection"] || 0.8; if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) { return null; } if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) { return null; } this.__stop2ErrorCorrection = stop2ErrorCorrection; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set anchorPoint(anchorPoint = [0, 0, 0]) { this.__anchorPoint = [anchorPoint]; return this; } addAnchorPoint(anchorPoint = [0, 0, 0]) { if (this.__anchorPoint == null) { this.__anchorPoint = []; } this.__anchorPoint.append(anchorPoint); return this; } removeAnchorPoint(anchorPoint) { for( let i = 0; i < this.__anchorPoint.length; i++) { if ( this.__anchorPoint[i] === anchorPoint) { this.__anchorPoint.splice(i, 1); } } return this.__anchorPoint; } get anchorPoint() { return this.__anchorPoint; } set axis1(axis1 = [0, 0, 0]) { this.__axis1 = [axis1]; return this; } addAxis1(axis1 = [0, 0, 0]) { if (this.__axis1 == null) { this.__axis1 = []; } this.__axis1.append(axis1); return this; } removeAxis1(axis1) { for( let i = 0; i < this.__axis1.length; i++) { if ( this.__axis1[i] === axis1) { this.__axis1.splice(i, 1); } } return this.__axis1; } get axis1() { return this.__axis1; } set axis2(axis2 = [0, 0, 0]) { this.__axis2 = [axis2]; return this; } addAxis2(axis2 = [0, 0, 0]) { if (this.__axis2 == null) { this.__axis2 = []; } this.__axis2.append(axis2); return this; } removeAxis2(axis2) { for( let i = 0; i < this.__axis2.length; i++) { if ( this.__axis2[i] === axis2) { this.__axis2.splice(i, 1); } } return this.__axis2; } get axis2() { return this.__axis2; } set body1(body1 = null) { this.__body1 = [body1]; return this; } addBody1(body1 = null) { if (this.__body1 == null) { this.__body1 = []; } this.__body1.append(body1); return this; } removeBody1(body1) { for( let i = 0; i < this.__body1.length; i++) { if ( this.__body1[i] === body1) { this.__body1.splice(i, 1); } } return this.__body1; } get body1() { return this.__body1; } removeBody1AnchorPoint(body1AnchorPoint) { for( let i = 0; i < this.__body1AnchorPoint.length; i++) { if ( this.__body1AnchorPoint[i] === body1AnchorPoint) { this.__body1AnchorPoint.splice(i, 1); } } return this.__body1AnchorPoint; } get body1AnchorPoint() { return this.__body1AnchorPoint; } removeBody1Axis(body1Axis) { for( let i = 0; i < this.__body1Axis.length; i++) { if ( this.__body1Axis[i] === body1Axis) { this.__body1Axis.splice(i, 1); } } return this.__body1Axis; } get body1Axis() { return this.__body1Axis; } set body2(body2 = null) { this.__body2 = [body2]; return this; } addBody2(body2 = null) { if (this.__body2 == null) { this.__body2 = []; } this.__body2.append(body2); return this; } removeBody2(body2) { for( let i = 0; i < this.__body2.length; i++) { if ( this.__body2[i] === body2) { this.__body2.splice(i, 1); } } return this.__body2; } get body2() { return this.__body2; } removeBody2AnchorPoint(body2AnchorPoint) { for( let i = 0; i < this.__body2AnchorPoint.length; i++) { if ( this.__body2AnchorPoint[i] === body2AnchorPoint) { this.__body2AnchorPoint.splice(i, 1); } } return this.__body2AnchorPoint; } get body2AnchorPoint() { return this.__body2AnchorPoint; } removeBody2Axis(body2Axis) { for( let i = 0; i < this.__body2Axis.length; i++) { if ( this.__body2Axis[i] === body2Axis) { this.__body2Axis.splice(i, 1); } } return this.__body2Axis; } get body2Axis() { return this.__body2Axis; } set forceOutput(forceOutput = ["NONE"]) { this.__forceOutput = [forceOutput]; return this; } addForceOutput(forceOutput = ["NONE"]) { if (this.__forceOutput == null) { this.__forceOutput = []; } this.__forceOutput.append(forceOutput); return this; } removeForceOutput(forceOutput) { for( let i = 0; i < this.__forceOutput.length; i++) { if ( this.__forceOutput[i] === forceOutput) { this.__forceOutput.splice(i, 1); } } return this.__forceOutput; } get forceOutput() { return this.__forceOutput; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set stop1Bounce(stop1Bounce = 0) { if (stop1Bounce == null || stop1Bounce < 0) { return null; } if (stop1Bounce == null || stop1Bounce > 1) { return null; } this.__stop1Bounce = [stop1Bounce]; return this; } addStop1Bounce(stop1Bounce = 0) { if (stop1Bounce == null || stop1Bounce < 0) { return null; } if (stop1Bounce == null || stop1Bounce > 1) { return null; } if (this.__stop1Bounce == null) { this.__stop1Bounce = []; } this.__stop1Bounce.append(stop1Bounce); return this; } removeStop1Bounce(stop1Bounce) { for( let i = 0; i < this.__stop1Bounce.length; i++) { if ( this.__stop1Bounce[i] === stop1Bounce) { this.__stop1Bounce.splice(i, 1); } } return this.__stop1Bounce; } get stop1Bounce() { return this.__stop1Bounce; } set stop1ErrorCorrection(stop1ErrorCorrection = 0.8) { if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) { return null; } if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) { return null; } this.__stop1ErrorCorrection = [stop1ErrorCorrection]; return this; } addStop1ErrorCorrection(stop1ErrorCorrection = 0.8) { if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) { return null; } if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) { return null; } if (this.__stop1ErrorCorrection == null) { this.__stop1ErrorCorrection = []; } this.__stop1ErrorCorrection.append(stop1ErrorCorrection); return this; } removeStop1ErrorCorrection(stop1ErrorCorrection) { for( let i = 0; i < this.__stop1ErrorCorrection.length; i++) { if ( this.__stop1ErrorCorrection[i] === stop1ErrorCorrection) { this.__stop1ErrorCorrection.splice(i, 1); } } return this.__stop1ErrorCorrection; } get stop1ErrorCorrection() { return this.__stop1ErrorCorrection; } set stop2Bounce(stop2Bounce = 0) { if (stop2Bounce == null || stop2Bounce < 0) { return null; } if (stop2Bounce == null || stop2Bounce > 1) { return null; } this.__stop2Bounce = [stop2Bounce]; return this; } addStop2Bounce(stop2Bounce = 0) { if (stop2Bounce == null || stop2Bounce < 0) { return null; } if (stop2Bounce == null || stop2Bounce > 1) { return null; } if (this.__stop2Bounce == null) { this.__stop2Bounce = []; } this.__stop2Bounce.append(stop2Bounce); return this; } removeStop2Bounce(stop2Bounce) { for( let i = 0; i < this.__stop2Bounce.length; i++) { if ( this.__stop2Bounce[i] === stop2Bounce) { this.__stop2Bounce.splice(i, 1); } } return this.__stop2Bounce; } get stop2Bounce() { return this.__stop2Bounce; } set stop2ErrorCorrection(stop2ErrorCorrection = 0.8) { if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) { return null; } if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) { return null; } this.__stop2ErrorCorrection = [stop2ErrorCorrection]; return this; } addStop2ErrorCorrection(stop2ErrorCorrection = 0.8) { if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) { return null; } if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) { return null; } if (this.__stop2ErrorCorrection == null) { this.__stop2ErrorCorrection = []; } this.__stop2ErrorCorrection.append(stop2ErrorCorrection); return this; } removeStop2ErrorCorrection(stop2ErrorCorrection) { for( let i = 0; i < this.__stop2ErrorCorrection.length; i++) { if ( this.__stop2ErrorCorrection[i] === stop2ErrorCorrection) { this.__stop2ErrorCorrection.splice(i, 1); } } return this.__stop2ErrorCorrection; } get stop2ErrorCorrection() { return this.__stop2ErrorCorrection; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += '= 3.1416) { return null; } this.__fieldOfView = fieldOfView; var IS = kwargs["IS"] || null; this.__IS = IS; var Bound = kwargs["Bound"] || null; this.__Bound = Bound; var jump = kwargs["jump"] || true; this.__jump = jump; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var orientation = kwargs["orientation"] || [0, 0, 1, 0]; this.__orientation = orientation; var position = kwargs["position"] || [0, 0, 10]; this.__position = position; var retainUserOffsets = kwargs["retainUserOffsets"] || false; this.__retainUserOffsets = retainUserOffsets; var bind = kwargs["bind"] || null; this.__bind = bind; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } removeBindTime(bindTime) { for( let i = 0; i < this.__bindTime.length; i++) { if ( this.__bindTime[i] === bindTime) { this.__bindTime.splice(i, 1); } } return this.__bindTime; } get bindTime() { return this.__bindTime; } set centerOfRotation(centerOfRotation = [0, 0, 0]) { this.__centerOfRotation = [centerOfRotation]; return this; } addCenterOfRotation(centerOfRotation = [0, 0, 0]) { if (this.__centerOfRotation == null) { this.__centerOfRotation = []; } this.__centerOfRotation.append(centerOfRotation); return this; } removeCenterOfRotation(centerOfRotation) { for( let i = 0; i < this.__centerOfRotation.length; i++) { if ( this.__centerOfRotation[i] === centerOfRotation) { this.__centerOfRotation.splice(i, 1); } } return this.__centerOfRotation; } get centerOfRotation() { return this.__centerOfRotation; } set description(description = null) { this.__description = [description]; return this; } addDescription(description = null) { if (this.__description == null) { this.__description = []; } this.__description.append(description); return this; } removeDescription(description) { for( let i = 0; i < this.__description.length; i++) { if ( this.__description[i] === description) { this.__description.splice(i, 1); } } return this.__description; } get description() { return this.__description; } set fieldOfView(fieldOfView = 0.7854) { if (fieldOfView == null || fieldOfView <= 0) { return null; } if (fieldOfView == null || fieldOfView >= 3.1416) { return null; } this.__fieldOfView = [fieldOfView]; return this; } addFieldOfView(fieldOfView = 0.7854) { if (fieldOfView == null || fieldOfView <= 0) { return null; } if (fieldOfView == null || fieldOfView >= 3.1416) { return null; } if (this.__fieldOfView == null) { this.__fieldOfView = []; } this.__fieldOfView.append(fieldOfView); return this; } removeFieldOfView(fieldOfView) { for( let i = 0; i < this.__fieldOfView.length; i++) { if ( this.__fieldOfView[i] === fieldOfView) { this.__fieldOfView.splice(i, 1); } } return this.__fieldOfView; } get fieldOfView() { return this.__fieldOfView; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } get isBound() { return this.__Bound; } set jump(jump = true) { this.__jump = [jump]; return this; } addJump(jump = true) { if (this.__jump == null) { this.__jump = []; } this.__jump.append(jump); return this; } removeJump(jump) { for( let i = 0; i < this.__jump.length; i++) { if ( this.__jump[i] === jump) { this.__jump.splice(i, 1); } } return this.__jump; } get isJump() { return this.__jump; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set orientation(orientation = [0, 0, 1, 0]) { this.__orientation = [orientation]; return this; } addOrientation(orientation = [0, 0, 1, 0]) { if (this.__orientation == null) { this.__orientation = []; } this.__orientation.append(orientation); return this; } removeOrientation(orientation) { for( let i = 0; i < this.__orientation.length; i++) { if ( this.__orientation[i] === orientation) { this.__orientation.splice(i, 1); } } return this.__orientation; } get orientation() { return this.__orientation; } set position(position = [0, 0, 10]) { this.__position = [position]; return this; } addPosition(position = [0, 0, 10]) { if (this.__position == null) { this.__position = []; } this.__position.append(position); return this; } removePosition(position) { for( let i = 0; i < this.__position.length; i++) { if ( this.__position[i] === position) { this.__position.splice(i, 1); } } return this.__position; } get position() { return this.__position; } set retainUserOffsets(retainUserOffsets = false) { this.__retainUserOffsets = [retainUserOffsets]; return this; } addRetainUserOffsets(retainUserOffsets = false) { if (this.__retainUserOffsets == null) { this.__retainUserOffsets = []; } this.__retainUserOffsets.append(retainUserOffsets); return this; } removeRetainUserOffsets(retainUserOffsets) { for( let i = 0; i < this.__retainUserOffsets.length; i++) { if ( this.__retainUserOffsets[i] === retainUserOffsets) { this.__retainUserOffsets.splice(i, 1); } } return this.__retainUserOffsets; } get isRetainUserOffsets() { return this.__retainUserOffsets; } set set_bind(bind = null) { this.__bind = [bind]; return this; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__clipBoundary = clipBoundary; var displayBBox = kwargs["displayBBox"] || false; this.__displayBBox = displayBBox; var IS = kwargs["IS"] || null; this.__IS = IS; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var children_ = kwargs["children_"] || null; this.__children_ = children_; var visible = kwargs["visible"] || true; this.__visible = visible; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } addChildren(children_ = null) { if (this.__children_ == null) { this.__children_ = []; } this.__children_.append(children_); return this; } set children(children = null) { this.__children = [children]; return this; } addChildren(children = null) { if (this.__children == null) { this.__children = []; } this.__children.append(children); return this; } removeChildren(children) { for( let i = 0; i < this.__children.length; i++) { if ( this.__children[i] === children) { this.__children.splice(i, 1); } } return this.__children; } get children() { return this.__children; } set clipBoundary(clipBoundary = [0, 1, 0, 1]) { if (clipBoundary == null || clipBoundary.length <= 0 || Math.min(clipBoundary) < 0) { return null; } if (clipBoundary == null || clipBoundary.length <= 0 || Math.max(clipBoundary) > 1) { return null; } this.__clipBoundary = [clipBoundary]; return this; } addClipBoundary(clipBoundary = [0, 1, 0, 1]) { if (clipBoundary == null || clipBoundary.length <= 0 || Math.min(clipBoundary) < 0) { return null; } if (clipBoundary == null || clipBoundary.length <= 0 || Math.max(clipBoundary) > 1) { return null; } if (this.__clipBoundary == null) { this.__clipBoundary = []; } this.__clipBoundary.append(clipBoundary); return this; } removeClipBoundary(clipBoundary) { for( let i = 0; i < this.__clipBoundary.length; i++) { if ( this.__clipBoundary[i] === clipBoundary) { this.__clipBoundary.splice(i, 1); } } return this.__clipBoundary; } get clipBoundary() { return this.__clipBoundary; } set displayBBox(displayBBox = false) { this.__displayBBox = [displayBBox]; return this; } addDisplayBBox(displayBBox = false) { if (this.__displayBBox == null) { this.__displayBBox = []; } this.__displayBBox.append(displayBBox); return this; } removeDisplayBBox(displayBBox) { for( let i = 0; i < this.__displayBBox.length; i++) { if ( this.__displayBBox[i] === displayBBox) { this.__displayBBox.splice(i, 1); } } return this.__displayBBox; } get isDisplayBBox() { return this.__displayBBox; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set visible(visible = true) { this.__visible = [visible]; return this; } addVisible(visible = true) { if (this.__visible == null) { this.__visible = []; } this.__visible.append(visible); return this; } removeVisible(visible) { for( let i = 0; i < this.__visible.length; i++) { if ( this.__visible[i] === visible) { this.__visible.splice(i, 1); } } return this.__visible; } get isVisible() { return this.__visible; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__direction = direction; var internal = kwargs["internal"] || true; this.__internal = internal; var IS = kwargs["IS"] || null; this.__IS = IS; var mass = kwargs["mass"] || 0; if (mass == null || mass < 0) { return null; } this.__mass = mass; var metadata = kwargs["metadata"] || null; this.__metadata = metadata; var coordIndex = kwargs["coordIndex"] || null; if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) { return null; } this.__coordIndex = coordIndex; var speed = kwargs["speed"] || 0; if (speed == null || speed < 0) { return null; } this.__speed = speed; var surfaceArea = kwargs["surfaceArea"] || 0; if (surfaceArea == null || surfaceArea < 0) { return null; } this.__surfaceArea = surfaceArea; var variation = kwargs["variation"] || 0.25; if (variation == null || variation < 0) { return null; } this.__variation = variation; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set coord(coord = null) { this.__coord = [coord]; return this; } addCoord(coord = null) { if (this.__coord == null) { this.__coord = []; } this.__coord.append(coord); return this; } removeCoord(coord) { for( let i = 0; i < this.__coord.length; i++) { if ( this.__coord[i] === coord) { this.__coord.splice(i, 1); } } return this.__coord; } get coord() { return this.__coord; } set direction(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } this.__direction = [direction]; return this; } addDirection(direction = [0, 1, 0]) { if (direction == null || direction.length <= 0 || Math.min(direction) < -1) { return null; } if (direction == null || direction.length <= 0 || Math.max(direction) > 1) { return null; } if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set mass(mass = 0) { if (mass == null || mass < 0) { return null; } this.__mass = [mass]; return this; } addMass(mass = 0) { if (mass == null || mass < 0) { return null; } if (this.__mass == null) { this.__mass = []; } this.__mass.append(mass); return this; } removeMass(mass) { for( let i = 0; i < this.__mass.length; i++) { if ( this.__mass[i] === mass) { this.__mass.splice(i, 1); } } return this.__mass; } get mass() { return this.__mass; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set set_coordIndex(coordIndex = null) { if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) { return null; } this.__coordIndex = [coordIndex]; return this; } set speed(speed = 0) { if (speed == null || speed < 0) { return null; } this.__speed = [speed]; return this; } addSpeed(speed = 0) { if (speed == null || speed < 0) { return null; } if (this.__speed == null) { this.__speed = []; } this.__speed.append(speed); return this; } removeSpeed(speed) { for( let i = 0; i < this.__speed.length; i++) { if ( this.__speed[i] === speed) { this.__speed.splice(i, 1); } } return this.__speed; } get speed() { return this.__speed; } set variation(variation = 0.25) { if (variation == null || variation < 0) { return null; } this.__variation = [variation]; return this; } addVariation(variation = 0.25) { if (variation == null || variation < 0) { return null; } if (this.__variation == null) { this.__variation = []; } this.__variation.append(variation); return this; } removeVariation(variation) { for( let i = 0; i < this.__variation.length; i++) { if ( this.__variation[i] === variation) { this.__variation.splice(i, 1); } } return this.__variation; } get variation() { return this.__variation; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 1) { return null; } this.__turbulence = turbulence; var DEF = kwargs["DEF"] || null; this.__DEF = DEF; var USE = kwargs["USE"] || null; this.__USE = USE; var class_ = kwargs["class_"] || null; this.__class_ = class_; } set direction(direction = [1, 0, 0]) { this.__direction = [direction]; return this; } addDirection(direction = [1, 0, 0]) { if (this.__direction == null) { this.__direction = []; } this.__direction.append(direction); return this; } removeDirection(direction) { for( let i = 0; i < this.__direction.length; i++) { if ( this.__direction[i] === direction) { this.__direction.splice(i, 1); } } return this.__direction; } get direction() { return this.__direction; } set enabled(enabled = true) { this.__enabled = [enabled]; return this; } addEnabled(enabled = true) { if (this.__enabled == null) { this.__enabled = []; } this.__enabled.append(enabled); return this; } removeEnabled(enabled) { for( let i = 0; i < this.__enabled.length; i++) { if ( this.__enabled[i] === enabled) { this.__enabled.splice(i, 1); } } return this.__enabled; } get isEnabled() { return this.__enabled; } set gustiness(gustiness = 0.1) { if (gustiness == null || gustiness < 0) { return null; } this.__gustiness = [gustiness]; return this; } addGustiness(gustiness = 0.1) { if (gustiness == null || gustiness < 0) { return null; } if (this.__gustiness == null) { this.__gustiness = []; } this.__gustiness.append(gustiness); return this; } removeGustiness(gustiness) { for( let i = 0; i < this.__gustiness.length; i++) { if ( this.__gustiness[i] === gustiness) { this.__gustiness.splice(i, 1); } } return this.__gustiness; } get gustiness() { return this.__gustiness; } set IS(IS = null) { this.__IS = [IS]; return this; } addIS(IS = null) { if (this.__IS == null) { this.__IS = []; } this.__IS.append(IS); return this; } removeIS(IS) { for( let i = 0; i < this.__IS.length; i++) { if ( this.__IS[i] === IS) { this.__IS.splice(i, 1); } } return this.__IS; } get IS() { return this.__IS; } set metadata(metadata = null) { this.__metadata = [metadata]; return this; } addMetadata(metadata = null) { if (this.__metadata == null) { this.__metadata = []; } this.__metadata.append(metadata); return this; } removeMetadata(metadata) { for( let i = 0; i < this.__metadata.length; i++) { if ( this.__metadata[i] === metadata) { this.__metadata.splice(i, 1); } } return this.__metadata; } get metadata() { return this.__metadata; } set speed(speed = 0.1) { if (speed == null || speed < 0) { return null; } this.__speed = [speed]; return this; } addSpeed(speed = 0.1) { if (speed == null || speed < 0) { return null; } if (this.__speed == null) { this.__speed = []; } this.__speed.append(speed); return this; } removeSpeed(speed) { for( let i = 0; i < this.__speed.length; i++) { if ( this.__speed[i] === speed) { this.__speed.splice(i, 1); } } return this.__speed; } get speed() { return this.__speed; } set turbulence(turbulence = 0) { if (turbulence == null || turbulence < 0) { return null; } if (turbulence == null || turbulence > 1) { return null; } this.__turbulence = [turbulence]; return this; } addTurbulence(turbulence = 0) { if (turbulence == null || turbulence < 0) { return null; } if (turbulence == null || turbulence > 1) { return null; } if (this.__turbulence == null) { this.__turbulence = []; } this.__turbulence.append(turbulence); return this; } removeTurbulence(turbulence) { for( let i = 0; i < this.__turbulence.length; i++) { if ( this.__turbulence[i] === turbulence) { this.__turbulence.splice(i, 1); } } return this.__turbulence; } get turbulence() { return this.__turbulence; } set DEF(DEF = null) { this.__DEF = [DEF]; return this; } addDEF(DEF = null) { if (this.__DEF == null) { this.__DEF = []; } this.__DEF.append(DEF); return this; } removeDEF(DEF) { for( let i = 0; i < this.__DEF.length; i++) { if ( this.__DEF[i] === DEF) { this.__DEF.splice(i, 1); } } return this.__DEF; } get DEF() { return this.__DEF; } set USE(USE = null) { this.__USE = [USE]; return this; } addUSE(USE = null) { if (this.__USE == null) { this.__USE = []; } this.__USE.append(USE); return this; } removeUSE(USE) { for( let i = 0; i < this.__USE.length; i++) { if ( this.__USE[i] === USE) { this.__USE.splice(i, 1); } } return this.__USE; } get USE() { return this.__USE; } set class(class_ = null) { this.__class_ = [class_]; return this; } addClass(class_ = null) { if (this.__class_ == null) { this.__class_ = []; } this.__class_.append(class_); return this; } removeClass(class_) { for( let i = 0; i < this.__class_.length; i++) { if ( this.__class_[i] === class_) { this.__class_.splice(i, 1); } } return this.__class_; } get class() { return this.__class_; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += ' 5) { return null; } this.__level = level; var name = kwargs["name"] || null; if ('Core' === name) { } else if ('CADGeometry' === name) { } else if ('CubeMapTexturing' === name) { } else if ('DIS' === name) { } else if ('EnvironmentalEffects' === name) { } else if ('EnvironmentalSensor' === name) { } else if ('EventUtilities' === name) { } else if ('Followers' === name) { } else if ('Geometry2D' === name) { } else if ('Geometry3D' === name) { } else if ('Geospatial' === name) { } else if ('Grouping' === name) { } else if ('HAnim' === name) { } else if ('H-Anim' === name) { } else if ('Interpolation' === name) { } else if ('KeyDeviceSensor' === name) { } else if ('Layering' === name) { } else if ('Layout' === name) { } else if ('Lighting' === name) { } else if ('Navigation' === name) { } else if ('Networking' === name) { } else if ('NURBS' === name) { } else if ('ParticleSystems' === name) { } else if ('Picking' === name) { } else if ('PointingDeviceSensor' === name) { } else if ('Rendering' === name) { } else if ('RigidBodyPhysics' === name) { } else if ('Scripting' === name) { } else if ('Shaders' === name) { } else if ('Shape' === name) { } else if ('Sound' === name) { } else if ('Text' === name) { } else if ('Texturing' === name) { } else if ('Texturing3D' === name) { } else if ('Time' === name) { } else if ('VolumeRendering' === name) { } else { return null; } this.__name = name; } set level(level = 1) { if (level == null || level < 1) { return null; } if (level == null || level > 5) { return null; } this.__level = [level]; return this; } addLevel(level = 1) { if (level == null || level < 1) { return null; } if (level == null || level > 5) { return null; } if (this.__level == null) { this.__level = []; } this.__level.append(level); return this; } removeLevel(level) { for( let i = 0; i < this.__level.length; i++) { if ( this.__level[i] === level) { this.__level.splice(i, 1); } } return this.__level; } get level() { return this.__level; } set name(name = null) { if ('Core' === name) { } else if ('CADGeometry' === name) { } else if ('CubeMapTexturing' === name) { } else if ('DIS' === name) { } else if ('EnvironmentalEffects' === name) { } else if ('EnvironmentalSensor' === name) { } else if ('EventUtilities' === name) { } else if ('Followers' === name) { } else if ('Geometry2D' === name) { } else if ('Geometry3D' === name) { } else if ('Geospatial' === name) { } else if ('Grouping' === name) { } else if ('HAnim' === name) { } else if ('H-Anim' === name) { } else if ('Interpolation' === name) { } else if ('KeyDeviceSensor' === name) { } else if ('Layering' === name) { } else if ('Layout' === name) { } else if ('Lighting' === name) { } else if ('Navigation' === name) { } else if ('Networking' === name) { } else if ('NURBS' === name) { } else if ('ParticleSystems' === name) { } else if ('Picking' === name) { } else if ('PointingDeviceSensor' === name) { } else if ('Rendering' === name) { } else if ('RigidBodyPhysics' === name) { } else if ('Scripting' === name) { } else if ('Shaders' === name) { } else if ('Shape' === name) { } else if ('Sound' === name) { } else if ('Text' === name) { } else if ('Texturing' === name) { } else if ('Texturing3D' === name) { } else if ('Time' === name) { } else if ('VolumeRendering' === name) { } else { return null; } this.__name = [name]; return this; } addName(name = null) { if ('Core' === name) { } else if ('CADGeometry' === name) { } else if ('CubeMapTexturing' === name) { } else if ('DIS' === name) { } else if ('EnvironmentalEffects' === name) { } else if ('EnvironmentalSensor' === name) { } else if ('EventUtilities' === name) { } else if ('Followers' === name) { } else if ('Geometry2D' === name) { } else if ('Geometry3D' === name) { } else if ('Geospatial' === name) { } else if ('Grouping' === name) { } else if ('HAnim' === name) { } else if ('H-Anim' === name) { } else if ('Interpolation' === name) { } else if ('KeyDeviceSensor' === name) { } else if ('Layering' === name) { } else if ('Layout' === name) { } else if ('Lighting' === name) { } else if ('Navigation' === name) { } else if ('Networking' === name) { } else if ('NURBS' === name) { } else if ('ParticleSystems' === name) { } else if ('Picking' === name) { } else if ('PointingDeviceSensor' === name) { } else if ('Rendering' === name) { } else if ('RigidBodyPhysics' === name) { } else if ('Scripting' === name) { } else if ('Shaders' === name) { } else if ('Shape' === name) { } else if ('Sound' === name) { } else if ('Text' === name) { } else if ('Texturing' === name) { } else if ('Texturing3D' === name) { } else if ('Time' === name) { } else if ('VolumeRendering' === name) { } else { return null; } if (this.__name == null) { this.__name = []; } this.__name.append(name); return this; } removeName(name) { for( let i = 0; i < this.__name.length; i++) { if ( this.__name[i] === name) { this.__name.splice(i, 1); } } return this.__name; } get name() { return this.__name; } set comments(comments = null) { this.__comments = [comments]; return this; } addComments(comments = null) { if (this.__comments == null) { this.__comments = []; } this.__comments.append(comments); return this; } toXMLNode(attrName) { let str = '' str += '