Class BlockInfo
- Namespace
- easyar
The model obtained from dense reconstruction is represented by a triangular mesh, called a mesh. Since the mesh is frequently updated, to ensure efficiency, the entire reconstructed model's mesh is split into many mesh blocks. A mesh block consists of a cube with a side length of approximately 1 meter, containing elements such as vertex and index. BlockInfo is used to describe the content of a mesh block. The (x,y,z) is the index of the mesh block. Multiplying (x,y,z) by the physical size of each mesh block gives the origin coordinates of this mesh block in the world coordinate system. The parts to be displayed can be pre-filtered based on the world position of the mesh block to save rendering time.
Record BlockInfo
Properties
x
x in the mesh block index (x,y,z)
int x
int x
public int x
public Int x
@property (nonatomic) int x
public var x: Int32
public int x
y
y in the mesh block index (x,y,z)
int y
int y
public int y
public Int y
@property (nonatomic) int y
public var y: Int32
public int y
z
z in the mesh block index (x,y,z)
int z
int z
public int z
public Int z
@property (nonatomic) int z
public var z: Int32
public int z
numOfVertex
Number of vertices in a mesh block
int numOfVertex
int numOfVertex
public int numOfVertex
public Int numOfVertex
@property (nonatomic) int numOfVertex
public var numOfVertex: Int32
public int numOfVertex
startPointOfVertex
The starting position of vertex data in the vertex buffer, indicating which vertex starts belonging to the current mesh block. It is not the offset in bytes; the offset in bytes for the starting position is startPointOfVertex * 3 * 4 bytes.
int startPointOfVertex
int startPointOfVertex
public int startPointOfVertex
public Int startPointOfVertex
@property (nonatomic) int startPointOfVertex
public var startPointOfVertex: Int32
public int startPointOfVertex
numOfIndex
Number of indices in a mesh block, where every 3 consecutive vertices form a triangular face.
int numOfIndex
int numOfIndex
public int numOfIndex
public Int numOfIndex
@property (nonatomic) int numOfIndex
public var numOfIndex: Int32
public int numOfIndex
startPointOfIndex
Similar to startPointOfVertex, the starting position of index data in the index buffer indicates which index starts belonging to the current mesh block. It is not the offset in bytes; the offset in bytes for the starting position is startPointOfIndex * 3 * 4 bytes.
int startPointOfIndex
int startPointOfIndex
public int startPointOfIndex
public Int startPointOfIndex
@property (nonatomic) int startPointOfIndex
public var startPointOfIndex: Int32
public int startPointOfIndex
version
The number of updates for the current mesh block; a larger version indicates more updates. If the version of a mesh block increases after calling updateSceneMesh, it indicates that its content has changed.