Repository: bonsairobo/block-mesh-rs (language: rust)

Issue:
Make OrientedBlockFace `n_sign` and `permutation` fields public or provide an accessor
Useful when creating custom `tex_coords` implementation


Discussion / hints:

Fix patch:
diff --git a/src/geometry/face.rs b/src/geometry/face.rs
index 2b5723e..7fab3a2 100644
--- a/src/geometry/face.rs
+++ b/src/geometry/face.rs
@@ -39,6 +39,16 @@ impl OrientedBlockFace {
             AxisPermutation::even_with_normal_axis(normal.unsigned_axis()),
         )
     }
+    
+    #[inline]
+    pub fn n_sign(&self) -> i32 {
+        self.n_sign
+    }
+    
+    #[inline]
+    pub fn permutation(&self) -> AxisPermutation {
+        self.permutation
+    }
 
     #[inline]
     pub fn signed_normal(&self) -> IVec3 {


Test patch: