Table of Contents

Struct BlockInfo

Namespace
easyar
Assembly
EasyAR.Sense.dll

The model obtained by dense reconstruction uses a triangular mesh representation, called a mesh. Since the mesh is frequently updated, to ensure efficiency, the mesh of the entire reconstruction model is divided into many mesh blocks. A mesh block consists of a cube with a side length of about 1 meter, and has elements such as vertices and indices.

 BlockInfo describes the content of a mesh block. The (x, y, z) are the indices of the mesh block. Multiplying (x, y, z) by the physical size of each mesh block can obtain the origin coordinates of this mesh block in the world coordinate system. The parts that need to be displayed can be pre-filtered through 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

x
y
z
numOfVertex
startPointOfVertex
numOfIndex
startPointOfIndex
version

Fields

numOfIndex

The number of indices in a mesh block, where every three consecutive vertices form a triangular face.

public int numOfIndex

Field Value

numOfVertex

The number of vertices in a mesh block.

public int numOfVertex

Field Value

startPointOfIndex

Similar to startPointOfVertex. The starting position of index data in the index buffer, indicating from which index the current mesh block belongs. It is not equal to the number of bytes of the offset. The offset of the starting position is startPointOfIndex * 3 * 4 bytes.

public int startPointOfIndex

Field Value

startPointOfVertex

The starting position of vertex data in the vertex buffer, indicating from which vertex the current mesh block belongs. It is not equal to the number of bytes of the offset. The offset of the starting position is startPointOfVertex * 3 * 4 bytes.

public int startPointOfVertex

Field Value

version

The number of updates of the current mesh block. A larger version means more updates. If the version of a mesh block becomes larger after calling `DenseSpatialMap.updateSceneMesh`_, it means that the content has changed.

public int version

Field Value

x

The x in the index (x, y, z) of the mesh block.

public int x

Field Value

y

The y in the index (x, y, z) of the mesh block.

public int y

Field Value

z

The z in the index (x, y, z) of the mesh block.

public int z

Field Value