Skip to content

Geometry

Utility functions for generating sensor grids and parsing Radiance geometry primitives. These are commonly used to prepare inputs for ray tracing workflows.

frads.gen_grid

gen_grid(polygon, height, spacing)

Generate a grid of points for orthogonal planar surfaces.

Parameters:

Name Type Description Default
polygon Polygon

a polygon object

required
height float

points' distance from the surface in its normal direction

required
spacing float

distance between the grid points

required

Returns: List of the points as list

frads.parse_polygon

parse_polygon(primitive)

Parse a primitive into a polygon.

Parameters:

Name Type Description Default
primitive Primitive

a dictionary object containing a primitive

required

Returns: A Polygon object