2027 Method
Changes 0
M

RebarShapeDrivenAccessor.ScaleToBox

Description:
Move and resize the bar to fit within a specified box. The arguments are interpreted as an arbitrary rectangle in 3D with vertices: origin, origin+xVec, origin+xVec+yVec, origin+yVec. The algorithm then proceeds as follows.
public void ScaleToBox(
	XYZ origin,
	XYZ xVec,
	XYZ yVec
)
  • origin
    One corner of the rectangle.
  • xVec
    Vector representing the first edge of the rectangle. The length must be positive.
  • yVec
    Vector representing the second edge of the rectangle. Must be perpendicular to xVec.