Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix choice of normal for revolution in some corner cases.
Before this commit, if the sketch contain no entities with starting points off of the axis of revolution, the revolution may fail, which manifests as the face normals being inverted. The code at the top of MakeFromRevolutionOf() takes the furthest point from the axis, projects it on that axis to get a vector. In this case that vector is essentially zero length except for rounding errors. After this commit, instead of only considering start points of beziers, all control points are considered. Fix by @phkahler.
- Loading branch information