Exemplo n.º 1
0
 public static TopologyMesh ByVerticesFaceIndices(Point[] vertices, int[][] faceIndices)
 {
     using (SubDivisionMesh mesh = SubDivisionMesh.ByVerticesFaceIndices(vertices, faceIndices, 0))
     {
         return(new TopologyMesh(mesh));
     }
 }
Exemplo n.º 2
0
 protected TopologyMesh(SubDivisionMesh mesh, bool persist = true)
 {
     m_meshEntity = GeometryExtension.ToEntity(mesh) as ISubDMeshEntity;
     if (null != m_meshEntity)
     {
         ISurfaceEntity surface = m_meshEntity.ConvertToSurface(false);
         if (persist)
         {
             IPersistenceManager persistence_manager = persistence_manager_property.GetValue(null, null) as IPersistenceManager;
             if (null != surface && null != persistence_manager)
                 m_brep = persistence_manager.Persist(surface) as IBRepEntity;
         }
         else
         if (null != surface)
             m_brep = surface as IBRepEntity;
     }
 }
Exemplo n.º 3
0
 protected TopologyMesh(SubDivisionMesh mesh, bool persist = true)
 {
     m_meshEntity = GeometryExtension.ToEntity(mesh) as ISubDMeshEntity;
     if (null != m_meshEntity)
     {
         ISurfaceEntity surface = m_meshEntity.ConvertToSurface(false);
         if (persist)
         {
             IPersistenceManager persistence_manager = persistence_manager_property.GetValue(null, null) as IPersistenceManager;
             if (null != surface && null != persistence_manager)
             {
                 m_brep = persistence_manager.Persist(surface) as IBRepEntity;
             }
         }
         else
         if (null != surface)
         {
             m_brep = surface as IBRepEntity;
         }
     }
 }
Exemplo n.º 4
0
 public static TopologyMesh FromSubDMesh(SubDivisionMesh mesh)
 {
     return new TopologyMesh(mesh);
 }
Exemplo n.º 5
0
 public static TopologyMesh FromSubDMesh(SubDivisionMesh mesh)
 {
     return(new TopologyMesh(mesh));
 }