Blender V5.3
draw_aabb.bsl.hh File Reference
#include "draw_shape.bsl.hh"

Go to the source code of this file.

Classes

struct  AABB

Functions

Axis Aligned Bound Box
AABB shape_aabb (float3 min, float3 max)
AABB aabb_init_min_max ()
void aabb_merge (AABB &aabb, float3 v)
bool aabb_intersect (AABB a, AABB b)
bool aabb_clip (AABB a, AABB b, AABB &c)
Box aabb_to_box (AABB aabb)

Function Documentation

◆ aabb_clip()

bool aabb_clip ( AABB a,
AABB b,
AABB & c )

Compute intersect intersection volume of a and b. Return true if the resulting volume is not empty.

Definition at line 55 of file draw_aabb.bsl.hh.

References aabb_clip(), all(), b, greaterThanEqual, AABB::max, max, AABB::min, and min.

Referenced by aabb_clip().

◆ aabb_init_min_max()

AABB aabb_init_min_max ( )

Definition at line 29 of file draw_aabb.bsl.hh.

References aabb_init_min_max(), AABB::max, and AABB::min.

Referenced by aabb_init_min_max().

◆ aabb_intersect()

bool aabb_intersect ( AABB a,
AABB b )

Return true if there is any intersection.

Definition at line 46 of file draw_aabb.bsl.hh.

References aabb_intersect(), all(), b, greaterThanEqual, AABB::max, max, AABB::min, and min.

Referenced by aabb_intersect().

◆ aabb_merge()

void aabb_merge ( AABB & aabb,
float3 v )

Definition at line 37 of file draw_aabb.bsl.hh.

References aabb_merge(), AABB::max, max, AABB::min, and min.

Referenced by aabb_merge().

◆ aabb_to_box()

Box aabb_to_box ( AABB aabb)

Definition at line 62 of file draw_aabb.bsl.hh.

References aabb_to_box(), Box::corners, AABB::max, and AABB::min.

Referenced by aabb_to_box().

◆ shape_aabb()

AABB shape_aabb ( float3 min,
float3 max )

Definition at line 21 of file draw_aabb.bsl.hh.

References AABB::max, max, AABB::min, min, and shape_aabb().

Referenced by shape_aabb().