Skip to content

Commit

Permalink
#642 Changed m_V by m_P when defining points
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrocortesark committed Oct 18, 2024
1 parent 1e972e8 commit ea64e32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bindings/bnd_pointcloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,9 @@ BND_PointCloud* BND_PointCloud::CreateFromThreejsJSON(BND_DICT json)
ON_PointCloud* pc = new ON_PointCloud();

const int vertex_count = position_array.size() / 3;
pc->m_V.SetCapacity(vertex_count);
pc->m_V.SetCount(vertex_count);
memcpy(pc->m_V.Array(), position_array.data(), sizeof(double) * position_array.size());
pc->m_P.SetCapacity(vertex_count);
pc->m_P.SetCount(vertex_count);
memcpy(pc->m_P.Array(), position_array.data(), sizeof(double) * position_array.size());

ON_Xform rotation(1);
rotation.RotationZYX(0.0, 0.0, ON_PI / 2.0);
Expand Down

0 comments on commit ea64e32

Please sign in to comment.