Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Functions
131-RepresentSortedAsUnsorted.cpp File Reference

[← Previous Example] [Next Example → 132-RepresentSortedAsUnsortedCartesianChart.cpp ]. More...

#include <fiber/bundle/Bundle.hpp>
#include <fiber/finit/FinitAPI.h>
#include <fiber/field/ArrayRef.hpp>
#include <eagle/PhysicalSpace.hpp>
#include <fiber/grid/types/RegularlyFragmentedGrid.hpp>

Functions

int main ()
 

Detailed Description

[← Previous Example] [Next Example → 132-RepresentSortedAsUnsortedCartesianChart.cpp ].

In FiberLib Tutorial

#include <fiber/bundle/Bundle.hpp>
#include <fiber/finit/FinitAPI.h>
#include <fiber/field/ArrayRef.hpp>
#include <eagle/PhysicalSpace.hpp>
#include <fiber/grid/types/RegularlyFragmentedGrid.hpp>
using namespace Fiber;
using namespace Eagle::PhysicalSpace;
int main()
{
// Initialize I/O layers
Finit();
//
// Create a bundle object with a grid at T=1.0, named "myGrid", in
// a three-dimensional cartesian representation, using the default
// coordinate system.
//
BundlePtr BP = new Bundle();
/**
######### POINT CLOUD #######
*/
Slice&mySlice = BP[0];
Grid&GridOfUnsortedPoints = mySlice["UnsortedPoints"];
/**
######### Index List #######
*/
Grid&GridOfSortedPoints = mySlice["SortedPoints"];
Skeleton&VertexSkeletonOfSortedPoints = GridOfSortedPoints[ SkeletonID(3,0) ]; // 3d neighbourhood expected, 0 index depth ->point
/**
Representation of Skeleton Sorted to Skeleton Unsorted
*/
for(auto&F :FieldPositionsOfSortedAsUnsorted->getNumberOfFragments() )
{
(*FieldPositionsOfSortedAsUnsorted)[F] = new CreativeArray(MB, MemCore::Cache::MemCache() );
}
BP.save("131_RepresentSortedAsUnsortede.f5");
Verbose(0) << BP->xml();
return 0;
}
Convenience class that implements a pointer to a Bundle object but adds some useful member funtions t...
Definition Bundle.hpp:779
int save(const string &url, const RefPtr< LoaderProgress > &SaveProgress=nullptr, const RefPtrStorageTransformations &ST=nullptr)
Definition Bundle.cpp:1142
The main entity holding all information.
Definition Bundle.hpp:173
A helper class that keeps objects in memory all time.
Definition CreativeArray.hpp:25
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
Identifier for Skeletons within a Grid.
Definition SkeletonID.hpp:24
A Skeleton is a set of Representation object, each of them accessed by an Representer object.
Definition Skeleton.hpp:102
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
static RefPtr< Cache, CacheBase > & MemCache()
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2

Function Documentation

◆ main()

int main ( )

######### POINT CLOUD #######

######### Index List #######

Representation of Skeleton Sorted to Skeleton Unsorted

References MemCore::Cache::MemCache(), and Fiber::BundlePtr::save().