载入中...
搜索中...
未找到
VesselGenerator.cpp
浏览该文件的文档.
11bool intersects(VesselSectionPoint a, VesselSectionPoint b, VesselSectionPoint c, VesselSectionPoint d) {
21eve::Result<MeshBuild> revolveVesselSection(const std::vector<VesselSectionPoint>& section, int radialSegments) {
34 if (!std::isfinite(a.radius) || !std::isfinite(a.height) || a.radius < 0.f || std::abs(a.height) > 10000.f ||
37 if (std::hypot(double(b.radius) - a.radius, double(b.height) - a.height) < 0.00001) return invalid();
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
CPU triangle mesh from procedural mesh recipes (e.g. marching cubes). Positions/normals are xyz-packe...
Definition MeshBuild.h:20
Definition EvpackPointGraphLoader.h:12
eve::Result< MeshBuild > revolveVesselSection(const std::vector< VesselSectionPoint > §ion, int radialSegments)
Revolve a solid section: underside axis, outside, rim, inside, floor axis.
Definition VesselGenerator.cpp:21
@ InvalidArgument