Closed bguan closed 2 weeks ago
Hey, yeah cap: bool
is not implemented for non-complete revolves, PR's welcome! cap
is supported for sweep
which I'd probably look at for reference.
Hi @mikedh, I've attempted a PR for you to review and/or comment. Any feedback is welcome. This is my first attempt peeping into the innards of Trimesh. Somehow my fix feels a little hackish as I am not sure I can follow what is potentially going on in triangulate_polygon(...) and I am worried there might be edge cases that my fix has not covered.
Using trimesh 4.4.3 and 4.4.6, the following code fails the 2nd assertion.
Am I missing something? Exporting mesh180 to STL and viewing it seems to indicate it is missing the face covering the cross section. Am I supposed to compute the start and end cap explicitly and somehow concatenate them to mesh180?