LGS 2D 4.0

Linear pattern constraints are frequently requested by users of computer-aided design applications, who needs to set a relation between several sub-geometries of equal shape (e.g. rectangles), aligned and uniformly distributed along a given direction. A pattern constraint implies that changing of the position or orientation of any of its arguments will lead to the corresponding changes in other arguments. Like other LGS 2D constraints, a linear pattern constraint is variational, that means it can be combined with other constraints imposed on sub-geometries that are involved in pattern - all constraints are solved simultaneously.

At the example you can see 3 rectangles (sets of four points and four lines with corresponding incidence constraints). Corners of one of the rectangles are fixed, defining a square geometry. Pattern constraints along a fixed line are applied on corresponding vertexes of the rectangles. As a result, rectangles are solved uniformly aligned along the direction. Since pattern constraint is solved together with all other constraints in the model, an example demonstrates, how changing of the shape of middle rectangle (using distance constraint) affects the shape of other two rectangles.