![]() |
KudanAR - iOS
1.6.0
|
#import <ARMeshNode.h>
Inherits ARNode.
Inherited by ARAlphaVideoNode, ARImageNode, ARPointNode, and ARVideoNode.
Class Methods | |
(instancetype) | + testMeshNodeWithRed:green:blue: |
(instancetype) | + testMeshNodeWithTexture: |
(instancetype) | + meshNodeWithTexture:width:height: |
(instancetype) | + meshNodeWithRed:green:blue:width:height: |
![]() | |
(instancetype) | + nodeWithName: |
Properties | |
ARMesh * | mesh |
ARMaterial * | material |
BOOL | cull |
![]() | |
NSString * | name |
ARNode * | parent |
NSArray< ARNode * > * | children |
NSArray * | descendants |
ARVector3 * | position |
ARVector3 * | scale |
ARQuaternion * | orientation |
ARMatrix4 * | localTransform |
ARMatrix4 * | worldTransform |
ARMatrix4 * | fullTransform |
ARQuaternion * | fullOrientation |
ARQuaternion * | worldOrientation |
ARVector3 * | worldScale |
ARVector3 * | worldPosition |
ARVector3 * | fullPosition |
ARNode * | world |
NSUInteger | childCount |
BOOL | visible |
An ARMeshNode is a subclass of ARNode that represents a drawable mesh. The geometry to be used, as well as its shading, is specified via this node. This class does not specify any of the mesh data, it simply contains an associated ARMesh.
+ (instancetype) meshNodeWithRed: | (float) | red | |
green: | (float) | green | |
blue: | (float) | blue | |
width: | (float) | width | |
height: | (float) | height | |
Creates a mesh node with an RGB colour material made from the given red, green and blue colour values and dimensinos from the given width and height.
red | Colour value between 0..1. |
green | Colour value between 0..1. |
blue | Colour value between 0..1. |
width | Mesh width. |
height | Mesh height. |
+ (instancetype) meshNodeWithTexture: | (ARTexture *) | texture | |
width: | (float) | width | |
height: | (float) | height | |
Creates a mesh node with a textured material made from the given texture and dimensions from the given width and height.
texture | The texture used to colour the mesh |
width | Mesh width. |
height | Mesh height. |
+ (instancetype) testMeshNodeWithRed: | (float) | red | |
green: | (float) | green | |
blue: | (float) | blue | |
Creates a mesh node with a square test mesh with a RGB colour material and dimensions of 10x10.
red | Colour value between 0..1. |
green | Colour value between 0..1. |
blue | Colour value between 0..1. |
+ (instancetype) testMeshNodeWithTexture: | (ARTexture *) | texture |
Creates a mesh node with a square test mesh with dimensions of 100x100.
texture | The texture used to colour the mesh. |
|
readwritenonatomicassign |
Whether or not this mesh node uses face culling. The face culling mode is set in ARMaterial. Default is NO.
|
readwritenonatomicassign |
The material to use for shading the mesh attached to this node. If the material is not specified, the shader cannot get any properties to correctly shade the mesh, so it will not be drawn. Materials can be shared between ARMeshNode objects.
Example of how to set a material:
|
readwritenonatomicassign |
The mesh geometry to use. Meshes can be shared between ARMeshNode objects.