MCPcopy Create free account
hub / github.com/colmap/colmap / BlockCoords

Method BlockCoords

src/colmap/mvs/advancing_front_meshing.cc:540–544  ·  view source on GitHub ↗

Convert a flat block index back to 3D block coordinates.

Source from the content-addressed store, hash-verified

538
539 // Convert a flat block index back to 3D block coordinates.
540 void BlockCoords(int block_idx, int& bx, int& by, int& bz) const {
541 bx = block_idx / (ny * nz);
542 by = (block_idx % (ny * nz)) / nz;
543 bz = block_idx % nz;
544 }
545
546 // Compute the axis-aligned bounding box for a block, including overlap.
547 CGAL::Bbox_3 BlockBbox(int bx, int by, int bz) const {

Callers 1

ReconstructBlocksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected