SceneMesh Class¶
getNumOfVertexAll¶
获取meshAll中顶点的数目。
- C
int easyar_SceneMesh_getNumOfVertexAll(easyar_SceneMesh * This)
- C++17
int getNumOfVertexAll()
- C++03(Deprecated)
int getNumOfVertexAll()
- Java
public int getNumOfVertexAll()
- Kotlin
fun getNumOfVertexAll(): Int
- Objective-C
- (int)getNumOfVertexAll
- Swift
public func getNumOfVertexAll() -> Int32
- C#
public virtual int getNumOfVertexAll()
getNumOfIndexAll¶
获取meshAll中索引的数目。由于每3个索引构成一个三角面,返回的数值应该是3的整数倍。
- C
int easyar_SceneMesh_getNumOfIndexAll(easyar_SceneMesh * This)
- C++17
int getNumOfIndexAll()
- C++03(Deprecated)
int getNumOfIndexAll()
- Java
public int getNumOfIndexAll()
- Kotlin
fun getNumOfIndexAll(): Int
- Objective-C
- (int)getNumOfIndexAll
- Swift
public func getNumOfIndexAll() -> Int32
- C#
public virtual int getNumOfIndexAll()
getVerticesAll¶
获取meshAll中的顶点的位置数据(世界坐标系下)。一个顶点的位置由(x,y,z)三个坐标描述,单位是米。位置数据在 Buffer 中是按照x1,y1,z1,x2,y2,z2,...紧密排列的。每个分量都是float类型。
- C
void easyar_SceneMesh_getVerticesAll(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getVerticesAll()
- C++03(Deprecated)
void getVerticesAll(Buffer * * Return)
- Java
public @Nonnull Buffer getVerticesAll()
- Kotlin
fun getVerticesAll(): Buffer
- Objective-C
- (easyar_Buffer *)getVerticesAll
- Swift
public func getVerticesAll() -> Buffer
- C#
public virtual Buffer getVerticesAll()
getNormalsAll¶
获取meshAll中的顶点的法向量数据。一个顶点的法向量由(nx,ny,nz)三个分量描述,该法向量是归一化后的结果,即模长为1。法向量数据在 Buffer 中是按照nx1,ny1,nz1,nx2,ny2,nz2,...紧密排列的。每个分量都是float类型。
- C
void easyar_SceneMesh_getNormalsAll(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getNormalsAll()
- C++03(Deprecated)
void getNormalsAll(Buffer * * Return)
- Java
public @Nonnull Buffer getNormalsAll()
- Kotlin
fun getNormalsAll(): Buffer
- Objective-C
- (easyar_Buffer *)getNormalsAll
- Swift
public func getNormalsAll() -> Buffer
- C#
public virtual Buffer getNormalsAll()
getIndicesAll¶
获取meshAll中的索引数据。每一个三角面由(ix,iy,iz)三个索引构成。索引数据在 Buffer 中是按照ix1,iy1,iz1,ix2,iy2,iz2,...紧密排列的。每个分量都是int32类型。
- C
void easyar_SceneMesh_getIndicesAll(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getIndicesAll()
- C++03(Deprecated)
void getIndicesAll(Buffer * * Return)
- Java
public @Nonnull Buffer getIndicesAll()
- Kotlin
fun getIndicesAll(): Buffer
- Objective-C
- (easyar_Buffer *)getIndicesAll
- Swift
public func getIndicesAll() -> Buffer
- C#
public virtual Buffer getIndicesAll()
getNumOfVertexIncremental¶
获取meshUpdated中顶点的数目。
- C
int easyar_SceneMesh_getNumOfVertexIncremental(easyar_SceneMesh * This)
- C++17
int getNumOfVertexIncremental()
- C++03(Deprecated)
int getNumOfVertexIncremental()
- Java
public int getNumOfVertexIncremental()
- Kotlin
fun getNumOfVertexIncremental(): Int
- Objective-C
- (int)getNumOfVertexIncremental
- Swift
public func getNumOfVertexIncremental() -> Int32
- C#
public virtual int getNumOfVertexIncremental()
getNumOfIndexIncremental¶
获取meshUpdated中索引的数目。
- C
int easyar_SceneMesh_getNumOfIndexIncremental(easyar_SceneMesh * This)
- C++17
int getNumOfIndexIncremental()
- C++03(Deprecated)
int getNumOfIndexIncremental()
- Java
public int getNumOfIndexIncremental()
- Kotlin
fun getNumOfIndexIncremental(): Int
- Objective-C
- (int)getNumOfIndexIncremental
- Swift
public func getNumOfIndexIncremental() -> Int32
- C#
public virtual int getNumOfIndexIncremental()
getVerticesIncremental¶
获取meshUpdated中的顶点的位置数据(世界坐标系下)。一个顶点的位置由(x,y,z)三个坐标描述,单位是米。顶点数据在 Buffer 中是按照x1,y1,z1,x2,y2,z2,...紧密排列的。每个分量都是float类型。
- C
void easyar_SceneMesh_getVerticesIncremental(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getVerticesIncremental()
- C++03(Deprecated)
void getVerticesIncremental(Buffer * * Return)
- Java
public @Nonnull Buffer getVerticesIncremental()
- Kotlin
fun getVerticesIncremental(): Buffer
- Objective-C
- (easyar_Buffer *)getVerticesIncremental
- Swift
public func getVerticesIncremental() -> Buffer
- C#
public virtual Buffer getVerticesIncremental()
getNormalsIncremental¶
获取meshUpdated中的顶点的法向量数据(世界坐标系下)。一个顶点的法向量由(nx,ny,nz)三个分量描述,该法向量是归一化后的结果,即模长为1。法向量数据在 Buffer 中是按照nx1,ny1,nz1,nx2,ny2,nz2,...紧密排列的。每个分量都是float类型。
- C
void easyar_SceneMesh_getNormalsIncremental(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getNormalsIncremental()
- C++03(Deprecated)
void getNormalsIncremental(Buffer * * Return)
- Java
public @Nonnull Buffer getNormalsIncremental()
- Kotlin
fun getNormalsIncremental(): Buffer
- Objective-C
- (easyar_Buffer *)getNormalsIncremental
- Swift
public func getNormalsIncremental() -> Buffer
- C#
public virtual Buffer getNormalsIncremental()
getIndicesIncremental¶
获取meshUpdated中的所有三角面的索引。每一个三角面由(ix,iy,iz)三个索引构成。索引数据在 Buffer 中是按照ix1,iy1,iz1,ix2,iy2,iz2,...紧密排列的。每个分量都是int32类型。
- C
void easyar_SceneMesh_getIndicesIncremental(easyar_SceneMesh * This, easyar_Buffer * * Return)
- C++17
std::shared_ptr<Buffer> getIndicesIncremental()
- C++03(Deprecated)
void getIndicesIncremental(Buffer * * Return)
- Java
public @Nonnull Buffer getIndicesIncremental()
- Kotlin
fun getIndicesIncremental(): Buffer
- Objective-C
- (easyar_Buffer *)getIndicesIncremental
- Swift
public func getIndicesIncremental() -> Buffer
- C#
public virtual Buffer getIndicesIncremental()
getBlocksInfoIncremental¶
获取meshUpdated中的mesh block的描述对象。返回值是一个由 BlockInfo 构成的数组,其中每一个元素是对一个mesh block的信息的详细描述。
- C
void easyar_SceneMesh_getBlocksInfoIncremental(easyar_SceneMesh * This, easyar_ListOfBlockInfo * * Return)
- C++17
std::vector<BlockInfo> getBlocksInfoIncremental()
- C++03(Deprecated)
void getBlocksInfoIncremental(ListOfBlockInfo * * Return)
- Java
public java.util.@Nonnull ArrayList<@Nonnull BlockInfo> getBlocksInfoIncremental()
- Kotlin
fun getBlocksInfoIncremental(): ArrayList<BlockInfo>
- Objective-C
- (NSArray<easyar_BlockInfo *> *)getBlocksInfoIncremental
- Swift
public func getBlocksInfoIncremental() -> [BlockInfo]
- C#
public virtual List<BlockInfo> getBlocksInfoIncremental()
getBlockDimensionInMeters¶
获取一个mesh block的边长,单位是米。
- C
float easyar_SceneMesh_getBlockDimensionInMeters(easyar_SceneMesh * This)
- C++17
float getBlockDimensionInMeters()
- C++03(Deprecated)
float getBlockDimensionInMeters()
- Java
public float getBlockDimensionInMeters()
- Kotlin
fun getBlockDimensionInMeters(): Float
- Objective-C
- (float)getBlockDimensionInMeters
- Swift
public func getBlockDimensionInMeters() -> Float
- C#
public virtual float getBlockDimensionInMeters()