Skip to content

Commit 6fe3257

Browse files
committed
fixed c-extension for solid models
1 parent 9731431 commit 6fe3257

File tree

4 files changed

+16623
-2861
lines changed

4 files changed

+16623
-2861
lines changed

examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
A = A[:, :, 0] + 1.*A[:,:, 3] # Compose some elements from RGBA to give depth
2222
A = gaussian_filter(A, 2) # smoothing
2323
numpy2stl(A, "examples/OpenMDAO-logo.stl",
24-
scale=0.05, mask_val=1., solid=False)
24+
scale=0.05, mask_val=1., solid=True)
2525

2626
text = ("$\oint_{\Gamma} (A\, dx + B\, dy) = \iint_{U} \left(\\frac{\partial "
2727
"B}{\partial x} - \\frac{\partial A}{\partial y}\\right)\ dxdy$ \n\n "
@@ -33,5 +33,5 @@
3333
A = 256 * imread("examples/Greens-Theorem_Navier-Stokes.png")
3434
A = A.mean(axis=2) # grayscale projection
3535
A = gaussian_filter(A.max() - A, 1.0)
36-
numpy2stl(A, "examples/Greens-Theorem_Navier-Stokes.stl", scale=0.2,
36+
numpy2stl(A, "examples/Greens-Theorem_Navier-Stokes.stl", scale=0.15,
3737
mask_val=5.)

0 commit comments

Comments
 (0)