载入中...
搜索中...
未找到
Box3DShapeCook.cpp
浏览该文件的文档.
5b3HullData* createCheckedHull(const std::vector<float>& vertices, int maxVertices, const char* operation) {
8 if (vertices.size() / 3 > 100000) throw eve::Exception("%s: source point count must be <= 100000", operation);
9 if (maxVertices < 4 || maxVertices > 254) throw eve::Exception("%s: maxVertices must be in [4, 254]", operation);
13 if (!std::isfinite(vertices[i]) || !std::isfinite(vertices[i + 1]) || !std::isfinite(vertices[i + 2]))
18 if (!hull) throw eve::Exception("%s: points do not form a valid three-dimensional convex hull", operation);
22b3MeshData* createCheckedMesh(const std::vector<float>& vertices, const std::vector<int32_t>& indices,
37 if (!std::isfinite(vertices[i]) || !std::isfinite(vertices[i + 1]) || !std::isfinite(vertices[i + 2]))
66b3HeightFieldData* createCheckedHeightField(int countX, int countZ, float cellSizeX, float cellSizeZ,
69 if (countX < 2 || countZ < 2) throw eve::Exception("%s: countX and countZ must be >= 2", operation);
71 if (sampleCount > 16000000) throw eve::Exception("%s: sample count must be <= 16000000", operation);
72 if (heights.size() != sampleCount) throw eve::Exception("%s: heights size must equal countX* countZ", operation);
Definition Body3D.h:17
b3MeshData * createCheckedMesh(const std::vector< float > &vertices, const std::vector< int32_t > &indices, bool weldVertices, float weldTolerance, bool identifyEdges, bool useMedianSplit, b3Transform transform, const std::vector< uint8_t > *materialIndices, const char *operation)
Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation ...
Definition Box3DShapeCook.cpp:22
b3HeightFieldData * createCheckedHeightField(int countX, int countZ, float cellSizeX, float cellSizeZ, const std::vector< float > &heights, float globalMin, float globalMax, bool clockwiseWinding, const char *operation)
Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation ...
Definition Box3DShapeCook.cpp:66
b3HullData * createCheckedHull(const std::vector< float > &vertices, int maxVertices, const char *operation)
Validates and cooks native geometry; throws on invalid input. @ownership Transfers native allocation ...
Definition Box3DShapeCook.cpp:5