Skip to content

Commit 86d2c4f

Browse files
authored
Merge pull request #13 from gizatt/pointcloud_tobytes_fix
Force tobytes() to use appropriate ordering
2 parents 036db8a + 30a0b93 commit 86d2c4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/meshcat/geometry.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def pack_numpy_array(x):
274274
return {
275275
u"itemSize": item_size(x),
276276
u"type": typename,
277-
u"array": umsgpack.Ext(extcode, x.tobytes()),
277+
u"array": umsgpack.Ext(extcode, x.tobytes('F')),
278278
u"normalized": False
279279
}
280280

@@ -342,6 +342,3 @@ def PointCloud(position, color, **kwargs):
342342
PointsGeometry(position, color),
343343
PointsMaterial(**kwargs)
344344
)
345-
346-
347-

0 commit comments

Comments
 (0)