render_points

render_points(points, render_matrix, camera_cull_threshold=1e-08, return_w=False): 

LLM Docstring

Project a set of points through a render matrix into (culled) screen coordinates.

Points are homogenized, transformed, perspective-divided by their w component, and flagged as in-view when w exceeds camera_cull_threshold.

  • points: np.ndarray

    the points to project

  • render_matrix: np.ndarray

    the model-view-projection matrix

  • camera_cull_threshold: float

    minimum w for a point to be considered in view

  • return_w: bool

    also return the homogeneous w component

  • :returns: tuple

    (projected_points, in_view_mask) (plus w if requested)


Feedback

Examples

Templates

Documentation