generated from specklesystems/speckle_automate_python_example
-
Notifications
You must be signed in to change notification settings - Fork 0
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
14d9197
commit 73a44c6
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import pymesh | ||
import numpy as np | ||
|
||
vertices = [ | ||
[0, 0, 0], | ||
[1, 0, 0], | ||
[1, 1, 0], | ||
[0, 1, 0] | ||
|
||
] | ||
|
||
faces = [ | ||
[0, 1, 2], | ||
[0, 2, 3] | ||
] | ||
|
||
mesh = pymesh.form_mesh(vertices, faces) | ||
mesh = pymesh.form_mesh(np.array(vertices), faces) |
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
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