Module Plane

Plane shape factory function.

Functions

Plane (width, height, v_segments, h_segments) Creates a menori.Mesh with a plane geometry.


Functions

Plane (width, height, v_segments, h_segments)
Creates a menori.Mesh with a plane geometry.

Parameters:

  • width number Width of the plane along the X-axis.
  • height number Height of the plane along the Y-axis.
  • v_segments number Number of vertical subdivisions (parallel to the Y-axis).
  • h_segments number Number of horizontal subdivisions (parallel to the X-axis).

Returns:

    menori.Mesh A new menori.Mesh object representing the generated plane.

Usage:

    -- Create a default 1x1 plane with no subdivisions
    local plane = menori.Plane()
    
    -- Create a 4x3 plane with no subdivisions
    local plane = menori.Plane(4, 3)
    
    -- Create a 1x1 plane subdivided into a 10x10 grid
    local plane = menori.Plane(1, 1, 10, 10)
    
    -- Create a ModelNode with plane
    local model_node = menori.ModelNode(plane)
generated by LDoc 1.5.0 Last updated 2025-08-18 00:01:40