Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the convexHull is not computed correctly #5

Open
diguaseven opened this issue Jan 4, 2024 · 0 comments
Open

the convexHull is not computed correctly #5

diguaseven opened this issue Jan 4, 2024 · 0 comments

Comments

@diguaseven
Copy link

int MinimumZoneFitPlane(const Point* pointsIn, int lengthIn, PlaneKernel* outLseg)
{
ConvexHull hull(pointsIn, lengthIn);
std::list faces = hull.GetFaces();
std::vector vertexs = hull.GetVertices();
std::vector pointT(vertexs.size());
for (int i = 0; i < vertexs.size(); i++) {
pointT[i].x = vertexs[i].x;
pointT[i].y = vertexs[i].y;
pointT[i].z = vertexs[i].z;
}

std::string filePath = "D:/CMM/PlanePointsVertex.csv";
WritePointsCSV(pointT.data(), pointT.size(), filePath.c_str());

return Geom3DError::OK;

}
The above is the call code for computing the 3D convex hull, the result is not correct;
PlanePoints.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant