Skip to content

Commit

Permalink
Start on mesh simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Dec 22, 2024
1 parent 6d7b3a8 commit bdd1a65
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/zmsh/simplification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import numpy as np
from . import simplicial, polytopal


def compute_plane(x: np.ndarray) -> np.ndarray:
pass


def compute_qmatrix(xs: np.ndarray) -> np.ndarray:
ps = np.array([compute_plane(x) for x in xs])
# TODO: Check the axis!!
return np.sum(np.array([np.outer(p, p) for p in ps]), axis=0)


class Simplification:
def __init__(self, points: np.ndarray, triangles: np.ndarray):
pass

@property
def topology(self):
return self._topology

@property
def heap(self):
pass

def best_edge(self):
pass

def step(self):
pass

0 comments on commit bdd1a65

Please sign in to comment.