public static TopologyMesh ByVerticesFaceIndices(Point[] vertices, int[][] faceIndices) { using (SubDivisionMesh mesh = SubDivisionMesh.ByVerticesFaceIndices(vertices, faceIndices, 0)) { return(new TopologyMesh(mesh)); } }
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; } }
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; } } }
public static TopologyMesh FromSubDMesh(SubDivisionMesh mesh) { return new TopologyMesh(mesh); }
public static TopologyMesh FromSubDMesh(SubDivisionMesh mesh) { return(new TopologyMesh(mesh)); }