Skip to content

Commit

Permalink
fix(OutputMesh): Point element count accounts for dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Feb 10, 2023
1 parent f16d69f commit 498385b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/itkOutputMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ITK_TEMPLATE_EXPORT OutputMesh
if (this->m_Mesh->GetNumberOfPoints() > 0)
{
const auto pointsAddress = reinterpret_cast< size_t >( &(wasmMesh->GetMesh()->GetPoints()->at(0)) );
const auto pointsSize = wasmMesh->GetMesh()->GetPoints()->Size() * sizeof(typename MeshType::CoordRepType);
const auto pointsSize = wasmMesh->GetMesh()->GetPoints()->Size() * sizeof(typename MeshType::CoordRepType) * MeshType::PointDimension;
setMemoryStoreOutputArray(0, index, 0, pointsAddress, pointsSize);
}

Expand Down

0 comments on commit 498385b

Please sign in to comment.