Skip to content

Commit

Permalink
bug fix for Point() in #1068
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Mar 5, 2024
1 parent fd558e1 commit 5cedf18
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vedo/pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,8 @@ def Point(pos=(0, 0, 0), r=12, c="red", alpha=1.0) -> "Points":
.. note:: if you are creating many points you should use class `Points` instead!
"""
try:
pos = pos.pos()
except AttributeError:
pass
pt = Points([[0, 0, 0]], r, c, alpha)
pt.pos(pos)
pt = Points([pos], r, c, alpha)
# pt.pos(pos) # dont set position, just the point coords
pt.name = "Point"
return pt

Expand Down

0 comments on commit 5cedf18

Please sign in to comment.