VladGribinchuk / FoundationBuilder

Application for calculation a stand(foundation) for 3d models
0 stars 0 forks source link

Finish the Polygon class: convexHull, isConvexHull #16

Closed IlliaHryshchuk closed 4 years ago

IlliaHryshchuk commented 4 years ago
IlliaHryshchuk commented 4 years ago

As i understood, the convexHull method have to build a convex hull from all the points of 3D model? I mean that firstly we must move all points of 3D model to a plane (e.g. every point`s coordinate z = 0), and then we must build a convex hull from that points? and that hull will be a prototype of a foundation, right?

VladGribinchuk commented 4 years ago

As i understood, the convexHull method have to build a convex hull from all the points of 3D model? I mean that firstly we must move all points of 3D model to a plane (e.g. every point`s coordinate z = 0), and then we must build a convex hull from that points? and that hull will be a prototype of a foundation, right?

Yes, you're right about prototype of foundation. But Polygon::convexHull() method builds convex hull only from points of 2D polygon object.

VladGribinchuk commented 4 years ago

Related PR was merged, so you can close this issue