quad_to_face
- compas_occ.conversions.quad_to_face(quad)
Convert a quad to a BRep face with an underlying ruled surface.
- Parameters:
- quad[point, point, point, point]
Four points defining a quad.
- Returns:
- TopoDS_Face
- Raises:
- ValueError
If the number of points is not 4.
See also
Examples
>>> quad = [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]] >>> quad_to_face(quad) <class 'TopoDS_Face'>