File tree Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Expand file tree Collapse file tree 5 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type MaxNodeJSON = NodeJSON;
14
14
* @extends Node
15
15
*/
16
16
export class MaxNode extends Node {
17
+ // temp vars to speed up evaluation by avoiding allocations
17
18
tmp_res : ValueResultType = { v : 0 , g : null , m : null } ;
18
19
tmp_g : Vector3 = new Vector3 ( ) ;
19
20
tmp_m : Material = new Material ( ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type MinNodeJSON = NodeJSON;
14
14
* @extends Node
15
15
*/
16
16
export class MinNode extends Node {
17
+ // temp vars to speed up evaluation by avoiding allocations
17
18
tmp_res : ValueResultType = { v : 0 , g : null , m : null } ;
18
19
tmp_g : Vector3 = new Vector3 ( ) ;
19
20
tmp_m : Material = new Material ( ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export type RicciNodeJSON = {
17
17
*/
18
18
export class RicciNode extends Node {
19
19
ricci_n : number ;
20
+ // temp vars to speed up evaluation by avoiding allocations
20
21
tmp_v_arr : Float32Array = new Float32Array ( 0 ) ;
21
22
tmp_m_arr : Material [ ] = [ ] ;
22
23
tmp_res : ValueResultType = { v : 0 , g : null , m : null } ;
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ type ScaleNodeJSON = {
21
21
*/
22
22
export class ScaleNode extends Node {
23
23
_scale : Vector3 = new Vector3 ( 1 , 1 , 1 ) ;
24
+
25
+ // temp vars to speed up evaluation by avoiding allocations
24
26
tmp_res : ValueResultType = { v : 0 , g : null , m : null } ;
25
27
tmp_g : Vector3 = new Vector3 ( ) ;
26
28
tmp_m : Material = new Material ( ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class AreaScalisTri extends Area {
27
27
unit_normal : Vector3 ;
28
28
main_dir : Vector3 ;
29
29
equal_weights : boolean ;
30
- segParams : SegParam [ ] ; // Define type for segParams as per your actual structure
30
+ segParams : SegParam [ ] ;
31
31
segAttr : {
32
32
p0_to_p : Vector3 ;
33
33
p0_to_p_sqrnorm : number ;
You can’t perform that action at this time.
0 commit comments