Code Reference

Modules

Modules of the DHART package.

geometry

Provides functions for manipulating and loading geometry.

graphgenerator

Provides a function to generate a graph on accessible terrain

pathfinding

Find paths between points within a graph

raytracer

Perform efficent ray intersections with geometry.

spatialstructures

Store relationhships between points in space

viewanalysis

Determine visual variety from points within the environment

visibilitygraph

Determine which locations are visible from other locations.

Main Module Methods

dhart.get_sample_model(name='')

Returns the absolute path to a given sample model in the package.

Some available strings are “energy_blob_zup.obj”, “plane.obj”, “teapot.obj”, “sponza.obj”

Parameters:

name (str) – Name of the sample model to load.

Returns:

model_path

Return type:

str