Beispiel #1
0
        public FaceInfo(TopoShape face, int idx, double area)
        {
            Surface = new GeomSurface();
            Surface.Initialize(face);
            Index = idx;
            Area  = area;

            Direction = Surface.GetNormal(Surface.FirstUParameter(), Surface.FirstVParameter());

            TopoShapeProperty prop = new TopoShapeProperty();
            var edges = GlobalInstance.TopoExplor.ExplorEdges(face);

            for (int jj = 0; jj < edges.Size(); ++jj)
            {
                var edge = edges.GetAt(jj);
                prop.SetShape(edge);
                var edgeInfo = new EdgeInfo(edge, jj, idx, prop.EdgeLength());
                // 只加直线?
                Edges.Add(jj, edgeInfo);
            }
        }
Beispiel #2
0
 public EdgeGroup(EdgeInfo edge)
     : base(edge.Direction)
 {
     EdgeLength = edge.Length;
 }