[cig-commits] [commit] baagaard/fix-meshing-examples-trelis: Updated to remove vertices while creating splines. (a3f0b9d)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Sun Jun 22 08:22:34 PDT 2014
Repository : https://github.com/geodynamics/pylith
On branch : baagaard/fix-meshing-examples-trelis
Link : https://github.com/geodynamics/pylith/compare/de1957210f7b1aa71d1a934ca51ff930f0384f25...a3f0b9d99eb2fc8cf91b50cc0a765cad99c4ee7c
>---------------------------------------------------------------
commit a3f0b9d99eb2fc8cf91b50cc0a765cad99c4ee7c
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Sun Jun 22 08:22:30 2014 -0700
Updated to remove vertices while creating splines.
>---------------------------------------------------------------
a3f0b9d99eb2fc8cf91b50cc0a765cad99c4ee7c
examples/meshing/surface_nurbs/subduction/interface_netsurf.py | 6 ++----
examples/meshing/surface_nurbs/subduction/splay_skinsurf.py | 3 +--
examples/meshing/surface_nurbs/subduction/topobath_netsurf.py | 6 ++----
3 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/examples/meshing/surface_nurbs/subduction/interface_netsurf.py b/examples/meshing/surface_nurbs/subduction/interface_netsurf.py
index 41f8bf7..ebde6c2 100644
--- a/examples/meshing/surface_nurbs/subduction/interface_netsurf.py
+++ b/examples/meshing/surface_nurbs/subduction/interface_netsurf.py
@@ -49,11 +49,10 @@ for iContour in range(numContours):
if 0 == iPoint:
j.write("#{idBeg=Id('vertex')}\n")
j.write("#{idEnd=Id('vertex')}\n")
- j.write("create curve spline vertex {idBeg} to {idEnd}\n")
+ j.write("create curve spline vertex {idBeg} to {idEnd} delete\n")
if 0 == iContour:
j.write("#{idCBeg=Id('curve')}\n")
j.write("#{idCEnd=Id('curve')}\n\n")
-j.write("delete vertex all\n")
# Loop over profiles (v-lines).
for iProfile in range(pointsPerContour):
@@ -65,11 +64,10 @@ for iProfile in range(pointsPerContour):
if 0 == iPoint:
j.write("#{idBeg=Id('vertex')}\n")
j.write("#{idEnd=Id('vertex')}\n")
- j.write("create curve spline vertex {idBeg} to {idEnd}\n")
+ j.write("create curve spline vertex {idBeg} to {idEnd} delete\n")
if 0 == iProfile:
j.write("#{idPBeg=Id('curve')}\n")
j.write("#{idPEnd=Id('curve')}\n\n")
-j.write("delete vertex all\n")
# Create net surface.
j.write("create surface net u curve {idCBeg} to {idCEnd} v curve {idPBeg} to {idPEnd}\n")
diff --git a/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py b/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py
index 682629a..06055d2 100644
--- a/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py
+++ b/examples/meshing/surface_nurbs/subduction/splay_skinsurf.py
@@ -49,11 +49,10 @@ for iProfile in range(numProfiles):
if 0 == iPoint:
j.write("#{idBeg=Id('vertex')}\n")
j.write("#{idEnd=Id('vertex')}\n")
- j.write("create curve spline vertex {idBeg} to {idEnd}\n")
+ j.write("create curve spline vertex {idBeg} to {idEnd} delete\n")
if 0 == iProfile:
j.write("#{idCBeg=Id('curve')}\n")
j.write("#{idCEnd=Id('curve')}\n\n")
-j.write("delete vertex all\n")
# Create skin surface.
j.write("create surface skin curve {idCBeg} to {idCEnd}\n")
diff --git a/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py b/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py
index 6e25cfa..2bebc10 100644
--- a/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py
+++ b/examples/meshing/surface_nurbs/subduction/topobath_netsurf.py
@@ -48,11 +48,10 @@ for iProfile in range(numProfiles):
if 0 == iPoint:
j.write("#{idBeg=Id('vertex')}\n")
j.write("#{idEnd=Id('vertex')}\n")
- j.write("create curve spline vertex {idBeg} to {idEnd}\n")
+ j.write("create curve spline vertex {idBeg} to {idEnd} delete\n")
if 0 == iProfile:
j.write("#{idPBeg=Id('curve')}\n")
j.write("#{idPEnd=Id('curve')}\n\n")
-j.write("delete vertex all\n")
# Loop over contours (v-lines).
for iContour in range(pointsPerProfile):
@@ -64,11 +63,10 @@ for iContour in range(pointsPerProfile):
if 0 == iPoint:
j.write("#{idBeg=Id('vertex')}\n")
j.write("#{idEnd=Id('vertex')}\n")
- j.write("create curve spline vertex {idBeg} to {idEnd}\n")
+ j.write("create curve spline vertex {idBeg} to {idEnd} delete\n")
if 0 == iContour:
j.write("#{idCBeg=Id('curve')}\n")
j.write("#{idCEnd=Id('curve')}\n\n")
-j.write("delete vertex all\n")
# Create net surface.
j.write("create surface net u curve {idCBeg} to {idCEnd} v curve {idPBeg} to {idPEnd}\n")
More information about the CIG-COMMITS
mailing list