aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de>2024-01-17 21:24:39 +0100
committerCharlotte Pabst <charlotte.pabst@stud.tu-darmstadt.de>2024-03-24 17:19:51 +0100
commit665e4b5f8c5bd770654d7cdf7860eb3c4cb9c732 (patch)
tree26dbfe6913eb669555e0834887957009e9082a88 /src
parent81bce1d38758d3a7d000b3fdf0b1821621885782 (diff)
downloaddcel-665e4b5f8c5bd770654d7cdf7860eb3c4cb9c732.tar.xz
Diffstat (limited to 'src')
-rw-r--r--src/main.rs15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 960c334..4c4fa0d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -327,14 +327,14 @@ impl<'brand, 'arena, V: Default> Dcel<'brand, 'arena, V> {
//let fb = b1.borrow(&self.token).face?;
let mut a3 = a1.borrow(&self.token).next?;
- if a3.borrow(&self.token) == b1.borrow(&self.token) {
+ /*if a3.borrow(&self.token) == b1.borrow(&self.token) {
a3 = b2;
- }
+ }*/
let mut b3 = b1.borrow(&self.token).prev?;
- if b3.borrow(&self.token) == a1.borrow(&self.token) {
+ /*if b3.borrow(&self.token) == a1.borrow(&self.token) {
b3 = a2;
- }
+ }*/
self.twin(a2, b2);
@@ -352,6 +352,13 @@ impl<'brand, 'arena, V: Default> Dcel<'brand, 'arena, V> {
}
pub fn mel(&mut self, v1: cell!(Vertex), v2: cell!(Vertex)) -> Option<()> {
+ let a = self.half_edges.alloc(&mut self.token, ());
+ let b = self.half_edges.alloc(&mut self.token, ());
+
+ self.twin(a, b);
+
+ //self.origin();
+
Some(())
}