|
Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
[← Previous Example] [Next Example → 040-FragmentedBinding.cpp ]. More...
#include <fiber/bundle/Bundle.hpp>#include <fiber/finit/FinitAPI.h>#include <fiber/field/ArrayRef.hpp>#include <fiber/field/UniformCartesianArray.hpp>#include <eagle/PhysicalSpace.hpp>#include <eagle/ColorSpace.hpp>#include <fiber/fiberop/Range.hpp>#include <fiber/baseop/ExpandBBox.hpp>#include <random>Typedefs | |
| using | rgb16 = Eagle::rgb16_t |
Functions | |
| void | makeUniformPointCloudFragment (RefPtr< Field > &Positions, const Eagle::BoundingBox &BBox, const MultiIndex< 3 > FragmentDims, const string &FragmentName, int PartialFactor) |
| The CellTensor and its simpler version, the CellSize. | |
| void | CreateEquidistantPointCloud (BundlePtr &BP) |
| Create a coordinate field with equidistantly distributed points to demonstrate functionality of the CellSize parameter. | |
| void | makeRandomPointCloudFragment (RefPtr< Field > &Positions, const Eagle::BoundingBox &BBox, const MultiIndex< 3 > FragmentDims, const string &FragmentName) |
| void | CreateRandomPointCloud (BundlePtr &BP) |
| void | makeRegularPointCloudFragment (RefPtr< Field > &Positions, const Eagle::BoundingBox &BBox, const MultiIndex< 3 > FragmentDims, const string &FragmentName) |
| void | CreateRegularPointCloud (BundlePtr &BP) |
| int | main () |
[← Previous Example] [Next Example → 040-FragmentedBinding.cpp ].
Create a coordinate field with equidistantly distributed points to demonstrate functionality of the CellSize parameter.
AI test: post this function body into the AI of your choice and ask it why the last two fragments fail.
References makeUniformPointCloudFragment().
| void makeUniformPointCloudFragment | ( | RefPtr< Field > & | Positions, |
| const Eagle::BoundingBox & | BBox, | ||
| const MultiIndex< 3 > | FragmentDims, | ||
| const string & | FragmentName, | ||
| int | PartialFactor | ||
| ) |
The CellTensor and its simpler version, the CellSize.
Demonstrate creating point clouds with a variety of distributions and the corresponding cell size or cell tensor. The simple cell size as scalar value only works for equidistant distributions. The cell tensor generalizes to also non-equidistant distributions.
References Eagle::PhysicalSpace::AABB::max(), and Eagle::PhysicalSpace::AABB::min().
Referenced by CreateEquidistantPointCloud().