public void BuildRectangleToLineBarShape(Rectangle3d rectangle, int position, CoverDimensions coverDimensions) { List <Point3d> shapePoints = RebarPoints.CreateForLineFromRectangle(rectangle, position, coverDimensions, Props); LineCurve line = new LineCurve(shapePoints[0], shapePoints[1]); RebarCurve = CreateRebarCurveInAnotherPlane(line, Plane.WorldXY, rectangle.Plane); RebarMesh = CreateRebarMesh(RebarCurve, Props.Radius); }
public void BuildLBarShape(Plane insertPlane, double height, double width, BendingRoller bendingRoller) { List <Point3d> shapePoints = RebarPoints.CreateForLBarShape(height, width, Props); PolylineCurve polyline = new PolylineCurve(shapePoints); Curve filletedPolyline = CreateFilletPolylineWithBendingRoller(polyline, bendingRoller); RebarCurve = CreateRebarCurveInAnotherPlane(filletedPolyline, Plane.WorldXY, insertPlane); RebarMesh = CreateRebarMesh(RebarCurve, Props.Radius); }
public void BuildRectangleToUBarShape(Rectangle3d rectangle, BendingRoller bendingRoller, int position, CoverDimensions coverDimensions, double hookLength) { List <Point3d> shapePoints = RebarPoints.CreateForUBarFromRectangle(rectangle, position, coverDimensions, hookLength, Props); PolylineCurve polyline = new PolylineCurve(shapePoints); Curve filletedPolyline = CreateFilletPolylineWithBendingRoller(polyline, bendingRoller); RebarCurve = CreateRebarCurveInAnotherPlane(filletedPolyline, Plane.WorldXY, rectangle.Plane); RebarMesh = CreateRebarMesh(RebarCurve, Props.Radius); }