[cig-commits] [commit] baagaard/add-missing-files-dist, baagaard/add-release-2.0.2, baagaard/add-release-2.0.3, baagaard/add-release-2.1.0, baagaard/dynrup-new-lagrange, baagaard/feature-output-station-names, baagaard/feature-progress-monitor, baagaard/fix-custom-faultpc, baagaard/fix-error-messages, baagaard/fix-faults-intersect, baagaard/fix-friction-initial-state, baagaard/fix-meshing-examples-trelis, baagaard/update-autoconf, knepley/feature-petsc-fe, knepley/fix-dm-composition, knepley/upgrade-petsc-3.5, knepley/upgrade-petsc-master, maint, master, next, willic3/fix-plasticity: Updated to remove vertices while creating splines. (a3f0b9d)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 15:41:37 PST 2014


Repository : https://github.com/geodynamics/pylith

On branches: baagaard/add-missing-files-dist,baagaard/add-release-2.0.2,baagaard/add-release-2.0.3,baagaard/add-release-2.1.0,baagaard/dynrup-new-lagrange,baagaard/feature-output-station-names,baagaard/feature-progress-monitor,baagaard/fix-custom-faultpc,baagaard/fix-error-messages,baagaard/fix-faults-intersect,baagaard/fix-friction-initial-state,baagaard/fix-meshing-examples-trelis,baagaard/update-autoconf,knepley/feature-petsc-fe,knepley/fix-dm-composition,knepley/upgrade-petsc-3.5,knepley/upgrade-petsc-master,maint,master,next,willic3/fix-plasticity
Link       : https://github.com/geodynamics/pylith/compare/f33c75b19fd60eedb2a3405db76a1fee333bb1d7...5b6d812b1612809fea3bd331c4e5af98c25a536a

>---------------------------------------------------------------

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