SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::helper::polygon_cube_intersection Namespace Reference

Functions

int trivial_vertex_tests (int nverts, const float verts[][3], int already_know_verts_are_outside_cube)
 
int fast_polygon_intersects_cube (int nverts, const float verts[][3], const float polynormal[3], int already_know_verts_are_outside_cube, int already_know_edges_are_outside_cube)
 
int polygon_contains_point_3d (int nverts, const float verts[][3], const float polynormal[3], float point[3])
 
int segment_intersects_cube (const float v0[3], const float v1[3])
 
int polygon_intersects_cube (int nverts, const float verts[][3], const float polynormal[3], int, int already_know_edges_are_outside_cube)
 
floatget_polygon_normal (float normal[3], int nverts, const float verts[][3])
 

Function Documentation

◆ fast_polygon_intersects_cube()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API int sofa::helper::polygon_cube_intersection::fast_polygon_intersects_cube ( int  nverts,
const float  verts[][3],
const float  polynormal[3],
int  already_know_verts_are_outside_cube,
int  already_know_edges_are_outside_cube 
)

◆ get_polygon_normal()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API float * sofa::helper::polygon_cube_intersection::get_polygon_normal ( float  normal[3],
int  nverts,
const float  verts[][3] 
)

◆ polygon_contains_point_3d()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API int sofa::helper::polygon_cube_intersection::polygon_contains_point_3d ( int  nverts,
const float  verts[][3],
const float  polynormal[3],
float  point[3] 
)

◆ polygon_intersects_cube()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API int sofa::helper::polygon_cube_intersection::polygon_intersects_cube ( int  nverts,
const float  verts[][3],
const float  polynormal[3],
int  ,
int  already_know_edges_are_outside_cube 
)

◆ segment_intersects_cube()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API int sofa::helper::polygon_cube_intersection::segment_intersects_cube ( const float  v0[3],
const float  v1[3] 
)

◆ trivial_vertex_tests()

SOFA_COMPONENT_TOPOLOGY_CONTAINER_GRID_API int sofa::helper::polygon_cube_intersection::trivial_vertex_tests ( int  nverts,
const float  verts[][3],
int  already_know_verts_are_outside_cube 
)