@woosh/meep-engine 2.59.2 → 2.59.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/meep.cjs CHANGED
@@ -69107,6 +69107,48 @@ class SGMesh {
69107
69107
  */
69108
69108
  __initial_bounds = new AABB3();
69109
69109
 
69110
+ /**
69111
+ *
69112
+ * @param {SGMesh} other
69113
+ * @returns {boolean}
69114
+ */
69115
+ equals(other) {
69116
+ if (other === undefined || other === null) {
69117
+ return false;
69118
+ }
69119
+
69120
+ return this.__url === other.__url
69121
+ && this.flags === other.flags
69122
+ && this.materialOverride === other.materialOverride;
69123
+ }
69124
+
69125
+ hash() {
69126
+ return computeStringHash(this.__url);
69127
+ }
69128
+
69129
+ /**
69130
+ *
69131
+ * @param {SGMesh} other
69132
+ */
69133
+ copy(other) {
69134
+ this.__url = other.__url;
69135
+ this.__node = null;
69136
+ this.__initial_bounds.copy(other.__initial_bounds);
69137
+ this.#material_override = other.#material_override;
69138
+ }
69139
+
69140
+ /**
69141
+ *
69142
+ * @returns {SGMesh}
69143
+ */
69144
+ clone() {
69145
+ const r = new SGMesh();
69146
+
69147
+ r.copy(this);
69148
+
69149
+ return r;
69150
+ }
69151
+
69110
69152
  /**
69111
69153
  *
69112
69154
  * @param {Material} v