Пример #1
0
 /// <summary>
 /// Moves the content of this mesh to the other
 /// </summary>
 /// <param name="toMesh"></param>
 public void MoveTo(IXbimMeshGeometry3D toMesh)
 {
     if (_meshes.Any()) //if no meshes nothing to move
     {
         toMesh.BeginUpdate();
         toMesh.Positions       = Positions; Positions.Clear();
         toMesh.Normals         = Normals; Normals.Clear();
         toMesh.TriangleIndices = TriangleIndices; TriangleIndices.Clear();
         toMesh.Meshes          = Meshes; _meshes.Clear();
         toMesh.EndUpdate();
     }
 }
Пример #2
0
        public void MoveTo(IXbimMeshGeometry3D toMesh)
        {
            if (meshes.Any()) //if no meshes nothing to move
            {
                toMesh.BeginUpdate();

                toMesh.Positions       = this.Positions;
                toMesh.Normals         = this.Normals;
                toMesh.TriangleIndices = this.TriangleIndices;
                toMesh.Meshes          = this.Meshes; this.meshes.Clear();
                WpfMesh.Geometry       = new MeshGeometry3D();
                toMesh.EndUpdate();
            }
        }
Пример #3
0
        public void MoveTo(IXbimMeshGeometry3D toMesh)
        {
            if (meshes.Any()) //if no meshes nothing to move
            {
                toMesh.BeginUpdate();

                toMesh.Positions       = new List <XbimPoint3D>(this.Positions);
                toMesh.Normals         = new List <XbimVector3D>(this.Normals);
                toMesh.TriangleIndices = new List <int>(this.TriangleIndices);

                toMesh.Meshes     = new XbimMeshFragmentCollection(this.Meshes); this.meshes.Clear();
                WpfModel.Geometry = new MeshGeometry3D();
                toMesh.EndUpdate();
            }
        }
Пример #4
0
 /// <summary>
 /// Moves the content of this mesh to the other
 /// </summary>
 /// <param name="toMesh"></param>
 public void MoveTo(IXbimMeshGeometry3D toMesh)
 {
     if (meshes.Any()) //if no meshes nothing to move
     {
         toMesh.BeginUpdate();
         toMesh.Positions = this.Positions; this.Positions.Clear();
         toMesh.Normals = this.Normals; this.Normals.Clear();
         toMesh.TriangleIndices = this.TriangleIndices; this.TriangleIndices.Clear();
         toMesh.Meshes = this.Meshes; this.meshes.Clear();
         toMesh.EndUpdate();
     }
 }
Пример #5
0
        public void MoveTo(IXbimMeshGeometry3D toMesh)
        {
            if (meshes.Any()) //if no meshes nothing to move
            {
                toMesh.BeginUpdate();

                toMesh.Positions = new List<XbimPoint3D>(this.Positions);
                toMesh.Normals = new List<XbimVector3D>(this.Normals);
                toMesh.TriangleIndices = new List<int>(this.TriangleIndices);

                toMesh.Meshes = new XbimMeshFragmentCollection(this.Meshes); this.meshes.Clear();
                WpfMesh.Geometry = new MeshGeometry3D();
                toMesh.EndUpdate();
            }
        }