Exemplo n.º 1
0
        private static GeometryModel3D CreateBaseMarkerModel3D(BaseMarker v)
        {
            const double size = 0.98;
            var          m    = new GeometryModel3D();
            var          mb   = new MeshBuilder();

            mb.AddBox(new Point3D(0, 0, 0), size, size, size);
            m.Geometry  = mb.ToMesh();
            m.Material  = MaterialHelper.CreateMaterial(v.Colour);
            m.Transform = new TranslateTransform3D(v.Position.X, v.Position.Y, v.Position.Z);
            return(m);
        }
Exemplo n.º 2
0
 private static GeometryModel3D CreateBaseMarkerModel3D(BaseMarker v)
 {
     const double size = 0.98;
     var m = new GeometryModel3D();
     var mb = new MeshBuilder();
     mb.AddBox(new Point3D(0, 0, 0), size, size, size);
     m.Geometry = mb.ToMesh();
     m.Material = MaterialHelper.CreateMaterial(v.Colour);
     m.Transform = new TranslateTransform3D(v.Position.X, v.Position.Y, v.Position.Z);
     return m;
 }