internal static CompositeGeometry CompositeGeometry(global::Topologic.Cluster cluster) { List <global::Topologic.Cell> cells = cluster.Cells; List <IGeometry> bhomSolids = new List <IGeometry>(); foreach (global::Topologic.Cell cell in cells) { bhomSolids.Add(Convert.BoundaryRepresentation(cell)); } return(new CompositeGeometry { Elements = bhomSolids }); }
internal static IGeometry BasicGeometry(global::Topologic.Topology topology) { if (topology == null) { return(null); } global::Topologic.Vertex vertex = topology as global::Topologic.Vertex; if (vertex != null) { return(Convert.BasicGeometry(vertex)); } global::Topologic.Edge edge = topology as global::Topologic.Edge; if (edge != null) { return(Convert.BasicGeometry(edge)); } global::Topologic.Wire wire = topology as global::Topologic.Wire; if (wire != null) { return(Convert.BasicGeometry(wire)); } global::Topologic.Face face = topology as global::Topologic.Face; if (face != null) { return(Convert.BasicGeometry(face)); } global::Topologic.Shell shell = topology as global::Topologic.Shell; if (shell != null) { return(Convert.BasicGeometry(shell)); } global::Topologic.Cell cell = topology as global::Topologic.Cell; if (cell != null) { return(Convert.BasicGeometry(cell)); } global::Topologic.CellComplex cellComplex = topology as global::Topologic.CellComplex; if (cellComplex != null) { return(Convert.BasicGeometry(cellComplex)); } global::Topologic.Cluster cluster = topology as global::Topologic.Cluster; if (cluster != null) { return(Convert.BasicGeometry(cluster)); } //global::Topologic.Aperture aperture = topology as global::Topologic.Aperture; //if (aperture != null) //{ // return Aperture.Convert.BasicGeometry(aperture); //} throw new NotImplementedException("Geometry for this shape is not supported yet"); }
public static List <global::Topologic.CellComplex> CellComplexes(global::Topologic.Cluster cluster) { return(cluster.CellComplexes); }
public static List <global::Topologic.Cell> Cells(global::Topologic.Cluster cluster) { return(cluster.Cells); }
public static List <global::Topologic.Vertex> Vertices(global::Topologic.Cluster cluster) { return(cluster.Vertices); }
public static List <global::Topologic.Edge> Edges(global::Topologic.Cluster cluster) { return(cluster.Edges); }
public static List <global::Topologic.Wire> Wires(global::Topologic.Cluster cluster) { return(cluster.Wires); }
public static List <global::Topologic.Face> Faces(global::Topologic.Cluster cluster) { return(cluster.Faces); }
internal static CompositeGeometry BasicGeometry(global::Topologic.Cluster cluster) { return(CompositeGeometry(cluster)); }