MCPcopy Index your code
hub / github.com/ad-si/LuaCAD / containsXY

Function containsXY

OpenCSG/src/primitiveHelper.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 bool containsXY(const Primitive* a, const Primitive* b) {
55 float aminx, aminy, aminz, amaxx, amaxy, amaxz,
56 bminx, bminy, bminz, bmaxx, bmaxy, bmaxz;
57 a->getBoundingBox(aminx, aminy, aminz, amaxx, amaxy, amaxz);
58 b->getBoundingBox(bminx, bminy, bminz, bmaxx, bmaxy, bmaxz);
59
60 return (aminx >= bminx) && (amaxx <= bmaxx)
61 && (aminy >= bminy) && (amaxy <= bmaxy);
62 }
63
64 unsigned int getConvexity(const std::vector<Primitive*>& batch) {
65 unsigned int convexity=1;

Callers 1

BatcherMethod · 0.85

Calls 1

getBoundingBoxMethod · 0.80

Tested by

no test coverage detected