AcousticTracer 0.1.0
An acoustic raytracing library.
Loading...
Searching...
No Matches
Model

Topics

 Triangles

Files

file  at.h
 The libraries public types and functions.
file  at_model.h
 AT_Model and related functions.

Data Structures

struct  AT_Model
 Groups the necessary information representing the 3D model. More...

Functions

AT_Result AT_model_create (AT_Model **out_model, const char *filepath)
 AT_Model constructor for a given glb filepath.
void AT_model_to_AABB (AT_AABB *out_aabb, const AT_Model *model)
 Calculates the min and max of a model for AABB collision.
AT_Result AT_model_get_triangles (AT_Triangle **out_triangles, const AT_Model *model)
 Constructs all triangles in a given Model.
void AT_model_destroy (AT_Model *model)
 Destroys an allocated AT_Model.
AT_Result AT_model_create (AT_Model **out_model, const char *filepath)
 AT_Model constructor for a given glb filepath.
void AT_model_to_AABB (AT_AABB *out_aabb, const AT_Model *model)
 Calculates the min and max of a model for AABB collision.
AT_Result AT_model_get_triangles (AT_Triangle **out_triangles, const AT_Model *model)
 Constructs all triangles in a given Model.
void AT_model_destroy (AT_Model *model)
 Destroys an allocated AT_Model.

Detailed Description

Function Documentation

◆ AT_model_create() [1/2]

AT_Result AT_model_create ( AT_Model ** out_model,
const char * filepath )
related

AT_Model constructor for a given glb filepath.

Parameters
out_modelPointer to an empty initialised AT_Model.
filepathString showing the location of the file.
Return values
AT_ResultSaves the created model at the location of the pointer, returning a result enum value.

◆ AT_model_create() [2/2]

AT_Result AT_model_create ( AT_Model ** out_model,
const char * filepath )

AT_Model constructor for a given glb filepath.

Parameters
out_modelPointer to an empty initialised AT_Model.
filepathString showing the location of the file.
Return values
AT_ResultSaves the created model at the location of the pointer, returning a result enum value.

◆ AT_model_destroy() [1/2]

void AT_model_destroy ( AT_Model * model)
related

Destroys an allocated AT_Model.

Parameters
ModelPointer to an initialised AT_Model.

◆ AT_model_destroy() [2/2]

void AT_model_destroy ( AT_Model * model)

Destroys an allocated AT_Model.

Parameters
ModelPointer to an initialised AT_Model.

◆ AT_model_get_triangles() [1/2]

AT_Result AT_model_get_triangles ( AT_Triangle ** out_triangles,
const AT_Model * model )
related

Constructs all triangles in a given Model.

Parameters
out_trianglesPointer an allocated empty array of triangles.
ModelPointer to an initialised AT_Model.
Return values
AT_Resultsaves the created triangles at the location of the pointer, returning a result enum value.

◆ AT_model_get_triangles() [2/2]

AT_Result AT_model_get_triangles ( AT_Triangle ** out_triangles,
const AT_Model * model )

Constructs all triangles in a given Model.

Parameters
out_trianglesPointer an allocated empty array of triangles.
ModelPointer to an initialised AT_Model.
Return values
AT_Resultsaves the created triangles at the location of the pointer, returning a result enum value.

◆ AT_model_to_AABB() [1/2]

void AT_model_to_AABB ( AT_AABB * out_aabb,
const AT_Model * model )
related

Calculates the min and max of a model for AABB collision.

Parameters
out_aabbPointer to an empty initialised AT_AABB.
ModelPointer to the model.

◆ AT_model_to_AABB() [2/2]

void AT_model_to_AABB ( AT_AABB * out_aabb,
const AT_Model * model )

Calculates the min and max of a model for AABB collision.

Parameters
out_aabbPointer to an empty initialised AT_AABB.
ModelPointer to the model.