Settings

Choose language

crop (object1,object2,object3)

crop
This function helps to crop an object against two other objects, or imaginary lines.


Function parameters


  • object to be cropped
  • border object *, or imaginary line
  • the other border object *, or imaginary line

* Can be point, line, arc, curve, circle, path. Multiple objects should be united into one path.

Usage


If the object to be cropped crosses both borders, it will be shortened. If it doesn't cross one or two borders, it's end will be prolongated along the corresponding angle at the end of the object, and a straight line will be drafted until it crosses the border.

For example:

C_P5_P6=curve(P5, P6, 320, 160)
L_P1_p2=line(P1, p2)
L_P3_P4=line(P3, P4)
crop(C_P5_P6, L_P1_P2, L_P3_P4)


BEFORE CROPAFTER CROP
Case 1 - the object crosses both borders
Case 2 - the object crosses one of the borders
Case 3 - the object doesn't cross any of the borders


https://www.sewist.com/pages/documentation#tp

Previous article

spread ((object1,....objectx),inner,outer,angle1,angle2,(newobject1,...newobjectx)

Back to category

Transformations

Next article

pleat(pattern, point, depth, angle, side)