Hololens/Lib/Annotations.cs
//########################################################################################################
/// <summary>
/// Method to call for build a new disc
/// </summary>
/// <param name="app"> the current running application that display the scene </param>
/// <param name="color"> Urhosharp color </param>
/// <param name="pos"> position x y z in the world scene (not relative to user position). The unit is the meter </param>
/// <param name="r"> radius of the cylinder </param>
/// <returns> UrhoSharp Text3D component </returns>
Method to call for build a new disc
Method to call for build a new disc
public static Cylinder Disc(StereoApplication app, Color color, Vector3 pos, float r)
        {
            var Node = app.Scene.CreateChild();
            var Component = Node.CreateComponent<Cylinder>();
            Component.Node.Scale = new Vector3(r, 0.02f, r);
            Component.Node.Position = pos;
            Component.Color = color;
            return Component;
        }
public static Cylinder Disc ( StereoApplication app , Color color , Vector3 pos , float r ) { var Node = app . Scene . CreateChild ( ) ; var Component = Node . CreateComponent < Cylinder > ( ) ; Component . Node . Scale = new Vector3 ( r , 0.02f , r ) ; Component . Node . Position = pos ; Component . Color = color ; return Component ; }
Method to call for build a new disc
Method to call for build a new disc
// create a new node in the scene and bind a new component to it // visual settings
UrhoSharp Text3D component
UrhoSharp Text3D component
app
StereoApplication
the current running application that display the scene
the current running application that display the scene
color
Color
None
pos
Vector3
position x y z in the world scene (not relative to user position). The unit is the meter
position x y z in the world scene ( not relative to user position ) . The unit is the meter
r
float
radius of the cylinder
radius of the cylinder