Skip to content

Commit

Permalink
OverridePCA fix
Browse files Browse the repository at this point in the history
set the LocalPlane origin to the centroid of the new Localbox w/r/t overrriden XY plane
  • Loading branch information
keithjlee committed Apr 26, 2024
1 parent 5c0ecaa commit 6c0eaae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Objects/Objects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ public void Repopulate(Plane plane)
TransformedGeometry.Transform(plane_transform);
Boundingbox = Geometry.GetBoundingBox(plane, out Localbox);

LocalPlane.Origin = Localbox.Center;

//new hull
Hull2D = Hulls.MakeHull2d(SampledPoints, plane);

Expand Down

0 comments on commit 6c0eaae

Please sign in to comment.