skoch9 / meshplot

Plot 3D triangle meshes
GNU General Public License v3.0
148 stars 37 forks source link

Observing 2 points instead of 1 when using add_points function #48

Closed hahazhar closed 8 months ago

hahazhar commented 8 months ago

I observe 2 points in my scene after running the following line

plto.add_points(np.array([0.0,0.0,1.0]), shading={"point_size": 0.5, "point_color": "green"}) image

I have tried performing the same line without the CAD model I imported. I still observe 2 points instead of 1.

image

hahazhar commented 8 months ago

Sorry this did the trick

plto.add_points(np.array([[0.0,0.0,1.0]]), shading={"point_size": 0.5, "point_color": "green"})