Table of Contents

Struct BlockInfo

Namespace
easyar
Assembly
EasyAR.Sense.dll

The model obtained by dense reconstruction is represented by a triangle mesh, called mesh. Because mesh is updated frequently, to ensure efficiency, the mesh of the entire reconstructed model is divided into many mesh blocks. A mesh block consists of a cube with side length of about 1 meter, containing elements such as vertex and index.

BlockInfo describes the contents of a mesh block. Here (x,y,z) is the index of the mesh block. Multiplying (x,y,z) by the physical size of each mesh block gives the coordinates of the origin of this mesh block in the world coordinate system. The parts that need to be displayed can be filtered in advance by 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. Every 3 consecutive vertices form a triangular face.

public int numOfIndex

numOfVertex

The number of vertices in a mesh block.

public int numOfVertex

startPointOfIndex

Similar to startPointOfVertex. The starting position where index data is stored in the index buffer, indicating from which index the current mesh block begins. It is not the byte count of the offset. The offset of the starting position is startPointOfIndex*3*4 bytes.

public int startPointOfIndex

startPointOfVertex

The starting position where vertex data is stored in the vertex buffer, indicating from which vertex the current mesh block begins. It is not the byte count of the offset. The offset of the starting position is startPointOfVertex*3*4 bytes.

public int startPointOfVertex

version

The number of times the current mesh block has been updated. A larger version indicates more updates. If the version of a mesh block becomes larger after calling `DenseSpatialMap.updateSceneMesh`_, it means its contents have changed.

public int version

x

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

public int x

y

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

public int y

z

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

public int z