-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e203b4d
commit 2102c72
Showing
7 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from dataclasses import dataclass | ||
from typing import Optional, Union | ||
import numpy as np | ||
|
||
|
||
@dataclass | ||
class Surface: | ||
vertices: np.ndarray | ||
triangles: np.ndarray | ||
normals: np.ndarray | ||
name: str | ||
values: Optional[np.ndarray] = None | ||
|
||
@property | ||
def pyvista(self): | ||
import pyvista as pv | ||
|
||
return pv.pv.PolyData.from_regular_faces(self.vertices, self.triangles) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class Value: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# import numpy as np | ||
|
||
|
||
# class ValueSet: | ||
# def __init__(self, values: np.ndarray): | ||
# self.values = values |