private void GetBoundaries(
List<Segment> segments,
Space space)
{
//BoundarySegmentArrayArray boundaries = space.Boundary; // 2011
IList<IList<BoundarySegment>> boundaries // 2012
= space.GetBoundarySegments( // 2012
new SpatialElementBoundaryOptions() ); // 2012
//foreach( BoundarySegmentArray b in boundaries ) // 2011
foreach( IList<BoundarySegment> b in boundaries ) // 2012
{
foreach( BoundarySegment s in b )
{
//Curve curve = s.Curve; // 2015
Curve curve = s.GetCurve(); // 2016
IList<XYZ> a = curve.Tessellate();
for( int i = 1; i < a.Count; ++i )
{
Segment segment = new Segment(
a[i - 1], a[i], space );
segments.Add( segment );
}
}
}
}