BRL-CAD

#include <ray_partition.h>

Collaboration diagram for partition:
[legend]

Data Fields

uint32_t pt_magic
 sanity check More...
 
struct partitionpt_forw
 forwards link More...
 
struct partitionpt_back
 backwards link More...
 
struct segpt_inseg
 IN seg ptr (gives stp) More...
 
struct hitpt_inhit
 IN hit pointer. More...
 
struct segpt_outseg
 OUT seg pointer. More...
 
struct hitpt_outhit
 OUT hit ptr. More...
 
struct regionpt_regionp
 ptr to containing region More...
 
char pt_inflip
 flip inhit->hit_normal More...
 
char pt_outflip
 flip outhit->hit_normal More...
 
struct region ** pt_overlap_reg
 NULL-terminated array of overlapping regions. NULL if no overlap. More...
 
struct bu_ptbl pt_seglist
 all segs in this partition More...
 

Detailed Description

Partitions of a ray. Passed from rt_shootray() into user's a_hit() function.

Not changed to a bu_list for backwards compatibility, but you can iterate the whole list by writing:

for (BU_LIST_FOR(pp, partition, (struct bu_list *)PartHeadp))

Definition at line 53 of file ray_partition.h.

Field Documentation

◆ pt_magic

uint32_t pt_magic

sanity check

Definition at line 55 of file ray_partition.h.

◆ pt_forw

struct partition* pt_forw

forwards link

Definition at line 56 of file ray_partition.h.

◆ pt_back

struct partition* pt_back

backwards link

Definition at line 57 of file ray_partition.h.

◆ pt_inseg

struct seg* pt_inseg

IN seg ptr (gives stp)

Definition at line 58 of file ray_partition.h.

◆ pt_inhit

struct hit* pt_inhit

IN hit pointer.

Definition at line 59 of file ray_partition.h.

◆ pt_outseg

struct seg* pt_outseg

OUT seg pointer.

Definition at line 60 of file ray_partition.h.

◆ pt_outhit

struct hit* pt_outhit

OUT hit ptr.

Definition at line 61 of file ray_partition.h.

◆ pt_regionp

struct region* pt_regionp

ptr to containing region

Definition at line 62 of file ray_partition.h.

◆ pt_inflip

char pt_inflip

flip inhit->hit_normal

Definition at line 63 of file ray_partition.h.

◆ pt_outflip

char pt_outflip

flip outhit->hit_normal

Definition at line 64 of file ray_partition.h.

◆ pt_overlap_reg

struct region** pt_overlap_reg

NULL-terminated array of overlapping regions. NULL if no overlap.

Definition at line 65 of file ray_partition.h.

◆ pt_seglist

struct bu_ptbl pt_seglist

all segs in this partition

Definition at line 66 of file ray_partition.h.


The documentation for this struct was generated from the following file: