A view of regions drawn exploded, as in an assembly drawing: each region moved by its own offset. A shape (isShape) that a renderer draws, picks and cuts with the section plane like any other.
More...
|
| | ExplodedView (const V &a_view, const std::vector< Box > &a_boxes, const T a_factor) |
| | Each region moved away from the middle: by a_factor times its box's center less the center of the boxes of all regions but the background.
|
| |
| | ExplodedView (const V &a_view, const std::vector< Box > &a_boxes, const std::vector< Vec3T< T > > &a_offsets) |
| | Each region moved by its own offset.
|
| |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept |
| | The value: the least function of a visible region at the point moved back by the region's offset.
|
| |
| DistanceQuality | getDistanceQuality () const noexcept |
| | The distance quality: the view's, since the value is made of its regions' functions.
|
| |
| BoundingVolumes::AABBT< T > | computeBoundingVolume () const noexcept |
| | The box of the moved regions (and of the view, with regions that stay where they are).
|
| |
| uint32_t | regionAt (const Vec3T< T > &a_point, Vec3T< T > &a_back) const noexcept |
| | The region that decides the value at a point, and the point moved back into the view's frame.
|
| |
| LeafRef< T > | closestLeaf (const Vec3T< T > &a_point) const noexcept |
| | The key of the surface that decides the value at a point, as the view names it, as a leaf reference (only m_leaf is set).
|
| |
| uint32_t | sectionKey (const Vec3T< T > &a_point) const noexcept |
| | What a point is in, for a section plane's fill: the material of the region the point is in, moved; the background's outside them all.
|
| |
| ExplodedView | withView (const V &a_view) const noexcept |
| | The same exploded view of another view of the same regions: the view on a mirror of its pool (whose memory the host cannot read, so that the constructors, which ask the view for its regions, could not build it), or with other region settings.
|
| |
| const V & | getView () const noexcept |
| | The view drawn exploded.
|
| |
template<class V>
class EBGeometry::Render::ViewerDetail::ExplodedView< V >
A view of regions drawn exploded, as in an assembly drawing: each region moved by its own offset. A shape (isShape) that a renderer draws, picks and cuts with the section plane like any other.
Internal to the viewer; not part of the public API.
Its value at p is the least, over the visible regions k below MaxRegions (the background excepted), of region k's function at p - offset_k (Tape::signedDistance(point, region)): each region keeps its own surface, its interfaces with the others included, so that a jacket moved off its core shows its bore. A region whose moved box lies farther from p than the least value so far is not asked: its surface is at least that far, so the least value so far is still a bound on the distance to the exploded surface, and its zero set is unchanged (a region is always asked near its own surface, inside its box). The regions from MaxRegions on stay where they are, through the view with the moved regions hidden. Rays march it (it has no ray form): exact region crossings do not survive the moves.
A surface's key (closestLeaf(), for coloring and picking) is the one the view gives region k's surface at the point moved back by k's offset (regionAt()). The offsets and the moved boxes are held in the object, so that it copies to a device as it is (a kernel parameter of a few kilobytes: with the render settings, beyond the 4 KB of CUDA before 12.1, as every render kernel's parameters already are), and the view's pool must outlive it, as the view's does.
Its render kernels are its own: a renderer instantiates them only where an ExplodedView is drawn (the viewer of a view of regions), and no other render's code changes.
- Template Parameters
-