discrete_coons_patch

compas.geometry.discrete_coons_patch(ab, bc, dc, ad)[source]

Creates a coons patch from a set of four or three boundary polylines (ab, bc, dc, ad).

Parameters

polylines (sequence) – The XYZ coordinates of the vertices of the polyline. The vertices are assumed to be in order. The polyline is assumed to be open:

Returns

  • points (list of tuples) – The points of the coons patch.

  • faces (list of lists) – List of faces (face = list of vertex indices as integers)

Notes

Direction and order of polylines:

b -----> c
^        ^
|        |
|        |
|        |
a -----> d

One polyline can be None to create a triangular patch (Warning! This will result in duplicate vertices)

For more information see 1 and 2.

References

1

Wikipedia. Coons patch. Available at: https://en.wikipedia.org/wiki/Coons_patch.

2

Robert Ferreol. Patch de Coons. Available at: https://www.mathcurve.com/surfaces/patchcoons/patchcoons.shtml

Examples

>>>