예제 #1
0
 public static IfcExtrudedAreaSolid Extrude(this IfcProfileDef sweptArea,
                                            double height,
                                            IfcDirection?direction,
                                            IfcAxis2Placement3D?position)
 {
     return(new IfcExtrudedAreaSolid(sweptArea,
                                     position ?? IfcInit.CreateIfcAxis2Placement3D(),
                                     direction ?? new IfcDirection(0, 0, 1),
                                     new IfcPositiveLengthMeasure(height)));
 }
예제 #2
0
 public static IfcRevolvedAreaSolid Revolve(this IfcProfileDef sweptArea,
                                            double rotation,
                                            IfcAxis1Placement?axis,
                                            IfcAxis2Placement3D?position)
 {
     return(new IfcRevolvedAreaSolid(sweptArea,
                                     position ?? IfcInit.CreateIfcAxis2Placement3D(),
                                     axis ?? new IfcAxis1Placement(new IfcCartesianPoint(0, 0, 0),
                                                                   new IfcDirection(0, 1, 0)),
                                     new IfcPlaneAngleMeasure(rotation)));
 }