Struct BlockInfo
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
The model obtained through dense reconstruction is represented using a triangular mesh, referred to as a mesh. Since the mesh undergoes frequent updates, to ensure efficiency, the entire reconstructed model's mesh is partitioned into numerous mesh blocks. A mesh block consists of a cube with an edge length of approximately 1 meter, containing elements such as vertices and indices.
BlockInfo describes the content of a mesh block. The (x,y,z) values represent the indices of the mesh block. Multiplying (x,y,z) by the physical size of each mesh block yields the origin coordinates of this mesh block in the world coordinate system. The required display sections can be pre-filtered based on the position of the mesh block in the world to save rendering time.
</p>
public struct BlockInfo
Constructors
BlockInfo(int, int, int, int, int, int, int, int)
public BlockInfo(int x, int y, int z, int numOfVertex, int startPointOfVertex, int numOfIndex, int startPointOfIndex, int version)
Parameters
xyznumOfVertexstartPointOfVertexnumOfIndexstartPointOfIndexversion
Fields
numOfIndex
The number of indices contained within a mesh block. Every three consecutive indices form a triangular face.
public int numOfIndex
Field Value
numOfVertex
The number of vertices contained within a mesh block.
public int numOfVertex
Field Value
startPointOfIndex
Similar to startPointOfVertex. The starting position of the index data within the index buffer, indicating the index at which indices belonging to the current mesh block begin. This is not equivalent to the byte offset; the byte offset of the starting position is startPointOfIndex*3*4 bytes.
public int startPointOfIndex
Field Value
startPointOfVertex
The starting position of the vertex data within the vertex buffer, indicating the index at which vertices belonging to the current mesh block begin. This is not equivalent to the byte offset; the byte offset of the starting position is startPointOfVertex*3*4 bytes.
public int startPointOfVertex
Field Value
version
The update count for the current mesh block; a higher version number indicates more frequent updates. If a mesh block's version increases after calling `DenseSpatialMap.updateSceneMesh`_, it signifies that its content has changed.
public int version
Field Value
x
The x-coordinate in the mesh block's index (x,y,z).
public int x
Field Value
y
The y-coordinate in the mesh block's index (x,y,z).
public int y
Field Value
z
The z-coordinate in the mesh block's index (x,y,z).
public int z