You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implementation for line line intersection, polyline self intersection and two polyline intersections. Also implemented scaled to fit hex grid with extensons, wip for subidivison of faces to hexagon wires. Implemented sorting of points on xyz, stretch of points + stretch transform matrixes, transformations between line to segment, polyline to segments and vice versa. Unit tests for intersections, fixed and extended to use unit test helper.
/** Total desired width for the grid area. The hexagon size will be derived from this and nrHexagonsU.
588
+
* @default 10
589
+
* @minimum 0
590
+
* @maximum Infinity
591
+
* @step 0.1
592
+
*/
593
+
width? =10;
594
+
/** Total desired height for the grid area. Note: due to hexagon geometry, the actual grid height might differ slightly if maintaining regular hexagons based on width.
595
+
* @default 10
596
+
* @minimum 0
597
+
* @maximum Infinity
598
+
* @step 0.1
599
+
*/
600
+
height? =10;
601
+
/** Number of hexagons desired horizontally (U direction).
602
+
* @default 10
603
+
* @minimum 0
604
+
* @maximum Infinity
605
+
* @step 1
606
+
*/
607
+
nrHexagonsU? =10;
608
+
/** Number of hexagons desired vertically (V direction).
609
+
* @default 10
610
+
* @minimum 0
611
+
* @maximum Infinity
612
+
* @step 1
613
+
*/
614
+
nrHexagonsV? =10;
615
+
/** If true, shift the entire grid up by half hex height.
616
+
* @default false
617
+
*/
618
+
extendTop? =false;
619
+
/** If true, shift the entire grid down by half hex height.
620
+
* @default false
621
+
*/
622
+
extendBottom? =false;
623
+
/** If true, shift the entire grid left by half hex width.
624
+
* @default false
625
+
*/
626
+
extendLeft? =false;
627
+
/** If true, shift the entire grid right by half hex width.
628
+
* @default false
629
+
*/
630
+
extendRight? =false;
631
+
/** If true, the grid center (based on totalWidth/totalHeight) will be at [0,0,0].
632
+
* @default false
633
+
*/
634
+
centerGrid? =false;
635
+
/** If true, swaps Y and Z coordinates and sets Y to 0, placing points on the XZ ground plane.
0 commit comments