Skip to content

Commit 8343bc6

Browse files
committed
fix: pass vector tollerance through vtk method for vectorpoints
1 parent ccbacff commit 8343bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LoopStructural/datatypes/_point.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def to_dict(self):
3636
"name": self.name,
3737
}
3838

39-
def vtk(self, geom='arrow', scale=1.0, scale_function=None):
39+
def vtk(self, geom='arrow', scale=1.0, scale_function=None, tolerance=0.05):
4040
import pyvista as pv
4141

4242
vectors = np.copy(self.vectors)
@@ -51,7 +51,7 @@ def vtk(self, geom='arrow', scale=1.0, scale_function=None):
5151
geom = pv.Disc(inner=0, outer=scale)
5252

5353
# Perform the glyph
54-
return points.glyph(orient="vectors", geom=geom, tolerance=0.05)
54+
return points.glyph(orient="vectors", geom=geom, tolerance=tolerance)
5555

5656
def save(self, filename):
5757
filename = str(filename)

0 commit comments

Comments
 (0)