Skip to content

Commit 29e51c1

Browse files
author
Onur R. Bingol
committed
Use vertex_spacing = 1 for consistency
1 parent 62e0225 commit 29e51c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

geomdl/exchange.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def export_obj_str(surface, **kwargs):
494494
:rtype: str
495495
"""
496496
# Get keyword arguments
497-
vertex_spacing = int(kwargs.get('vertex_spacing', 2))
497+
vertex_spacing = int(kwargs.get('vertex_spacing', 1))
498498
include_vertex_normal = kwargs.get('vertex_normals', False)
499499
include_param_vertex = kwargs.get('parametric_vertices', False)
500500
update_delta = kwargs.get('update_delta', True)
@@ -576,7 +576,7 @@ def export_stl(surface, file_name, **kwargs):
576576
577577
Keyword Arguments:
578578
* ``binary``: flag to generate a binary STL file. *Default: True*
579-
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 2*
579+
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 1*
580580
* ``update_delta``: use multi-surface evaluation delta for all surfaces. *Default: True*
581581
582582
:param surface: surface or surfaces to be saved
@@ -597,7 +597,7 @@ def export_stl_str(surface, **kwargs):
597597
598598
Keyword Arguments:
599599
* ``binary``: flag to generate a binary STL file. *Default: False*
600-
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 2*
600+
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 1*
601601
* ``update_delta``: use multi-surface evaluation delta for all surfaces. *Default: False*
602602
603603
:param surface: surface or surfaces to be saved
@@ -606,7 +606,7 @@ def export_stl_str(surface, **kwargs):
606606
:rtype: str
607607
"""
608608
binary = kwargs.get('binary', False)
609-
vertex_spacing = int(kwargs.get('vertex_spacing', 2))
609+
vertex_spacing = int(kwargs.get('vertex_spacing', 1))
610610
update_delta = kwargs.get('update_delta', True)
611611

612612
# Input validity checking
@@ -657,7 +657,7 @@ def export_off(surface, file_name, **kwargs):
657657
""" Exports surface(s) as a .off file.
658658
659659
Keyword Arguments:
660-
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 2*
660+
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 1*
661661
* ``update_delta``: use multi-surface evaluation delta for all surfaces. *Default: True*
662662
663663
:param surface: surface or surfaces to be saved
@@ -674,7 +674,7 @@ def export_off_str(surface, **kwargs):
674674
""" Exports surface(s) as a .off file (string).
675675
676676
Keyword Arguments:
677-
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 2*
677+
* ``vertex_spacing``: size of the triangle edge in terms of points sampled on the surface. *Default: 1*
678678
* ``update_delta``: use multi-surface evaluation delta for all surfaces. *Default: True*
679679
680680
:param surface: surface or surfaces to be saved
@@ -683,7 +683,7 @@ def export_off_str(surface, **kwargs):
683683
:rtype: str
684684
"""
685685
# Get keyword arguments
686-
vertex_spacing = int(kwargs.get('vertex_spacing', 2))
686+
vertex_spacing = int(kwargs.get('vertex_spacing', 1))
687687
update_delta = kwargs.get('update_delta', True)
688688

689689
# Input validity checking

0 commit comments

Comments
 (0)