Commit Graph

28 Commits

Author SHA1 Message Date
Jarrod Doyle 4b7685ae3c
Add some basic benchmarks 2023-10-12 12:04:21 +01:00
Jarrod Doyle c8d9480593
Add alternative brush to brush plane intersection methods 2023-10-12 12:03:06 +01:00
Jarrod Doyle 4281db12c8
Add alternative plane intersection in_halfspace function 2023-10-12 11:39:28 +01:00
Jarrod Doyle dd73410d0a
Add trait derivations to Brush and Aabb 2023-09-25 10:45:45 +01:00
Jarrod Doyle 700ad4b8ba
Remove slow unused plane intersection halfplane check 2023-09-25 10:39:52 +01:00
Jarrod Doyle 93266ed328
Add halfspace check to plane 2023-09-25 10:37:34 +01:00
Jarrod Doyle e1688f6841
Use faster halfspace method for precise brush intersection 2023-09-25 10:32:38 +01:00
Jarrod Doyle dc749aa7be
Remove double transpose 2023-09-25 10:25:22 +01:00
Jarrod Doyle 43d5259af2
Tried out Itertools::tuple_combinations 2023-09-22 21:50:26 +01:00
Jarrod Doyle 58cda59b78
Simplify merge vertices function 2023-09-22 21:33:04 +01:00
Jarrod Doyle 4116ba40e5
Use iter to simplify brush plane intersection validation 2023-09-22 15:57:28 +01:00
Jarrod Doyle 92249cf8c8
Add AABB intersection test to brushes 2023-09-22 12:08:36 +01:00
Jarrod Doyle bcf73c0251
Add brush AABB generation 2023-09-22 12:02:33 +01:00
Jarrod Doyle 7cb3e59329
Extract rebuild stages to methods 2023-09-22 11:46:49 +01:00
Jarrod Doyle 901fb79ae6
Add vertex merging 2023-09-22 10:17:49 +01:00
Jarrod Doyle 0cfb77804d
Implement Default for MaterialID and BrushPlane 2023-09-22 09:54:13 +01:00
Jarrod Doyle 73495fcde6
Update test to use Plane::new 2023-09-19 19:41:02 +01:00
Jarrod Doyle 0c6fd180f3
Implement From<Vec4> for Plane 2023-09-19 19:40:44 +01:00
Jarrod Doyle edb70037d6
Implement Default and Display for Plane 2023-09-19 18:02:31 +01:00
Jarrod Doyle e4b6d375f8
Brush vertices are now checked against all brush planes for validity 2023-09-18 21:51:21 +01:00
Jarrod Doyle a8c7655637
Remove placeholder generated lib content 2023-09-18 21:48:54 +01:00
Jarrod Doyle 7de381d911
Add some basic tests to plane operations 2023-09-18 21:48:11 +01:00
Jarrod Doyle 8fa3c40240
Add helper functions to determine if an intersection is in the half-space of a given plane 2023-09-18 21:47:44 +01:00
Jarrod Doyle c64384c362
Account for reversed offsets in intersection point calculation 2023-09-18 21:47:11 +01:00
Jarrod Doyle dafdbaf319
Add Eq implementations for Plane and basic derives for PlaneIntersection 2023-09-18 21:46:35 +01:00
Jarrod Doyle c57d94230e
Store the positive offset in planes 2023-09-18 21:46:06 +01:00
Jarrod Doyle 9dbcb2b811
Basic brush plane intersection calculation 2023-09-18 11:23:49 +01:00
Jarrod Doyle cdf3ed0444
Create initial crates 2023-09-18 09:31:50 +01:00