Generate() public static method

public static Generate ( DatabaseIfc db, IEnumerable points, List segments ) : IfcBoundedCurve
db DatabaseIfc
points IEnumerable
segments List
return IfcBoundedCurve
Exemplo n.º 1
0
 internal override void changeSchema(ReleaseVersion schema)
 {
     base.changeSchema(schema);
     if (schema == ReleaseVersion.IFC2x3)
     {
         IfcCartesianPointList   cpl   = Points;
         IfcCartesianPointList2D cpl2d = cpl as IfcCartesianPointList2D;
         if (cpl2d != null)
         {
             IfcBoundedCurve bc    = IfcBoundedCurve.Generate(mDatabase, cpl2d.mCoordList.ToList(), Segments);
             int             index = bc.mIndex;
             mDatabase[mIndex]     = bc;
             mDatabase[index]      = null;
             mDatabase[cpl.mIndex] = null;
         }
         else
         {
             throw new Exception("Not Implemented");
         }
     }
 }