Пример #1
0
        /// <summary>
        /// </summary>
        /// <param name="name">
        /// </param>
        /// <param name="size">
        /// </param>
        /// <param name="scene">
        /// </param>
        /// <param name="updatable">
        /// </param>
        /// <returns>
        /// </returns>
        public static Mesh CreatePlane(string name, double size, Scene scene, bool updatable = false)
        {
            var plane      = new Mesh(name, scene);
            var vertexData = VertexData.CreatePlane(size);

            vertexData.applyToMesh(plane, updatable);
            return(plane);
        }
Пример #2
0
 public override VertexData _regenerateVertexData()
 {
     return(VertexData.CreatePlane(this.size));
 }
Пример #3
0
 public Plane(int id, Scene scene, double size, bool canBeRegenerated = false, Mesh mesh = null)
     : base(id, scene, VertexData.CreatePlane(size), canBeRegenerated, mesh)
 {
     this.size = size;
 }