pygfx.geometries.plane_geometry
- pygfx.geometries.plane_geometry(width=1, height=1, width_segments=1, height_segments=1)
Generate a plane.
Creates a flat (2D) rectangle in the local xy-plane that has its center at local origin. The plane may be subdivided into segments along the x- or y-axis respectively.
- Parameters:
width (float) – The plane’s width measured along the x-axis.
height (float) – The plane’s width measured along the y-axis.
width_segments (int) – The number of evenly spaced segments along the x-axis into which the plane should be divided.
height_segments (int) – The number of evenly spaced segments along the y-axis into which the plane should be divided.
- Returns:
plane – A geometry object representing the requested plane. Mathematically, it is an open orientable manifold.
- Return type:
Examples
Displaying an image in a scene
Validate transparency with and without bg
Validate transparency for the ordered2 blend mode