33#include <NDEVR/FactoryOptions.h>
34#include <NDEVR/BlockGeometry.h>
35#include "Base/Headers/Scanner.h"
36#include "Base/Headers/Translator.h"
37#include "Base/Headers/Exception.h"
56 BlockGeometry grid_mesh(geo);
70 for (
uint04 y = 0; y < index_size[Y]; y++)
72 for (
uint04 x = 0; x < index_size[X]; x++)
76 grid_mesh.setVertexProperty(extra_property, x, y, 0, scanner.
getNext<
fltp04>());
79 for (
uint04 i = 0; i < 10; i++)
81 for (
uint04 y = 0; y < index_size[Y]; y++)
83 for (
uint04 x = 0; x < index_size[X]; x++)
85 grid_mesh.setVertexProperty(extra_property, x, y, i, grid_mesh.vertexProperty<
fltp04>(extra_property, x, y, 0));
90 trans = trans.offset(offset);
105 static bool canRead(
const File&
file)
107 if (
file.endsWith(
".grd",
true))
Reads block model data from .grd files into a Model's geometry.
void set(t_property_type property, const t_type &value)
Sets a property value in the database.
User-defined options that define preferences for importing and exporting using IOFactory objects.
An Exception that contains information about a runtime error with a particular File.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
A core class within the model hierarchy containing vertex-based data (Usually 3D data) within a set c...
@ e_no_vertex
No vertex data present.
uint04 createVertexProperty(const StringView &property_name)
Creates a new custom vertex property column with a compile-time type.
Templated logic for doing matrix multiplication.
A core class that represents a node on model hierarchy.
Geometry createChildGeometry()
Creates a new child geometry for this model.
Contains methods for easily reading objects in an ascii stream using set deliminators and line logic.
t_type getNext()
Reads and returns the next token parsed as the specified type.
virtual bool nextLine()
Advances the scanner to the next line in the stream.
The core String class for the NDEVR API.
A fixed-size array with N dimensions used as the basis for geometric and mathematical types.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
double fltp08
Defines an alias representing an 8 byte floating-point number.
@ file
The source file path associated with this object.
@ transform
A 4x4 transform matrix that maps local coordinates into global space.