BNBFace

Objective-C

@interface BNBFace : NSObject

/**@return face name (string) */
- (nonnull NSString *)getName;

/**@return face index (int) */
- (int32_t)getIndex;

/**
 *sets face index for face. Face mesh and textures will be updated according their faces index. 
 *If index will be greater than max faces can be found face resources update will be ignored.
 *@param index (int): face index
 */
- (void)setIndex:(int32_t)index;

/**
 *sets face mesh. Must be only "$builtin$meshes/face.stream" mesh.
 *@param mesh (mesh): face mesh
 */
- (void)setFaceMesh:(nullable BNBMesh *)mesh;

/**@return face mesh (mesh) */
- (nullable BNBMesh *)getFaceMesh;

@end

Swift

class BNBFace : NSObject

Undocumented

  • Declaration

    Objective-C

    - (nonnull NSString *)getName;

    Swift

    func getName() -> String

    Return Value

    face name (string)

  • Declaration

    Objective-C

    - (int32_t)getIndex;

    Swift

    func getIndex() -> Int32

    Return Value

    face index (int)

  • sets face index for face. Face mesh and textures will be updated according their faces index. If index will be greater than max faces can be found face resources update will be ignored.

    Declaration

    Objective-C

    - (void)setIndex:(int32_t)index;

    Swift

    func setIndex(_ index: Int32)

    Parameters

    index

    (int): face index

  • sets face mesh. Must be only “$builtin$meshes/face.stream” mesh.

    Declaration

    Objective-C

    - (void)setFaceMesh:(nullable BNBMesh *)mesh;

    Swift

    func setFace(_ mesh: BNBMesh?)

    Parameters

    mesh

    (mesh): face mesh

  • Declaration

    Objective-C

    - (nullable BNBMesh *)getFaceMesh;

    Swift

    func getMesh() -> BNBMesh?

    Return Value

    face mesh (mesh)