Cogs.Core
Public Attributes | List of all members
Cogs::Core::SparseOctree::OctreeInfo Struct Reference

Public Attributes

PropertyStore properties
 
std::string layer
 
std::string source
 
std::string name
 
std::string absolute
 
std::string directory
 
std::string layerDirectory
 
std::string filesDirectory
 
std::string assetFileNameStem
 
std::string layerAndName
 
std::string skipPattern
 
std::string keepList
 ("rvm.tagSimplify.keepList")
 
LevelReducer levelReducer = LevelReducer::RationalReducerVertexCount
 
bool discardOutliers = false
 
bool outputOutliers = false
 
bool colorizeLevels = false
 Add material to output colorized dependent on lod level, intended as a debug tool.
 
bool embedMeshBounds = true
 Add mesh bounds where appropriate.
 
bool statistics = false
 Calculate statistics for resulting hierarchy.
 
uint32_t maxSubtreeSize = 0
 
int maxMeshVertexCount = 80000
 
int maxModelVertexCount = 50000
 
int maxModelMeshCount = 20
 
int outlierMinVertexCount = 10'000
 
float outlierMaxVolume = 1.0f
 
float outlierMinVertexDensity = 10'000'000
 
int dropReductionLevelThreshold = 4
 
int dropReductionThreshold = 1000
 
int minReductionThreshold = 500
 
float edgeLengthWeight = 1.0f
 
glm::vec3 minBounds
 
glm::vec3 maxBounds
 
bool useMinBounds = false
 
bool useMaxBounds = false
 
bool isEmpty = false
 
bool useCompression = false
 
bool prettyPrint = false
 
int compressionLevel = 0
 
std::string taskFilter
 
std::string filter_rootEndsWith
 Individual Task: filter settings - for compatibility.
 
std::string filter_rootIncludes
 
std::string filter_rootPattern
 
std::string filter_attributeName
 
std::string filter_attributeValue
 
std::vector< std::string > filter_excludeNodes
 

Detailed Description

Definition at line 136 of file SparseBuildOctree.h.

Member Data Documentation

◆ absolute

std::string Cogs::Core::SparseOctree::OctreeInfo::absolute

Definition at line 146 of file SparseBuildOctree.h.

◆ assetFileNameStem

std::string Cogs::Core::SparseOctree::OctreeInfo::assetFileNameStem

Definition at line 150 of file SparseBuildOctree.h.

◆ colorizeLevels

bool Cogs::Core::SparseOctree::OctreeInfo::colorizeLevels = false

Add material to output colorized dependent on lod level, intended as a debug tool.

Definition at line 160 of file SparseBuildOctree.h.

◆ compressionLevel

int Cogs::Core::SparseOctree::OctreeInfo::compressionLevel = 0

Definition at line 205 of file SparseBuildOctree.h.

◆ directory

std::string Cogs::Core::SparseOctree::OctreeInfo::directory

Definition at line 147 of file SparseBuildOctree.h.

◆ discardOutliers

bool Cogs::Core::SparseOctree::OctreeInfo::discardOutliers = false

Definition at line 158 of file SparseBuildOctree.h.

◆ dropReductionLevelThreshold

int Cogs::Core::SparseOctree::OctreeInfo::dropReductionLevelThreshold = 4

Definition at line 190 of file SparseBuildOctree.h.

◆ dropReductionThreshold

int Cogs::Core::SparseOctree::OctreeInfo::dropReductionThreshold = 1000

Definition at line 191 of file SparseBuildOctree.h.

◆ edgeLengthWeight

float Cogs::Core::SparseOctree::OctreeInfo::edgeLengthWeight = 1.0f

Definition at line 194 of file SparseBuildOctree.h.

◆ embedMeshBounds

bool Cogs::Core::SparseOctree::OctreeInfo::embedMeshBounds = true

Add mesh bounds where appropriate.

Definition at line 161 of file SparseBuildOctree.h.

◆ filesDirectory

std::string Cogs::Core::SparseOctree::OctreeInfo::filesDirectory

Definition at line 149 of file SparseBuildOctree.h.

◆ filter_attributeName

std::string Cogs::Core::SparseOctree::OctreeInfo::filter_attributeName

Definition at line 231 of file SparseBuildOctree.h.

◆ filter_attributeValue

std::string Cogs::Core::SparseOctree::OctreeInfo::filter_attributeValue

Definition at line 232 of file SparseBuildOctree.h.

◆ filter_excludeNodes

std::vector<std::string> Cogs::Core::SparseOctree::OctreeInfo::filter_excludeNodes

Definition at line 233 of file SparseBuildOctree.h.

◆ filter_rootEndsWith

std::string Cogs::Core::SparseOctree::OctreeInfo::filter_rootEndsWith

Individual Task: filter settings - for compatibility.

Definition at line 228 of file SparseBuildOctree.h.

◆ filter_rootIncludes

std::string Cogs::Core::SparseOctree::OctreeInfo::filter_rootIncludes

Definition at line 229 of file SparseBuildOctree.h.

◆ filter_rootPattern

std::string Cogs::Core::SparseOctree::OctreeInfo::filter_rootPattern

Definition at line 230 of file SparseBuildOctree.h.

◆ isEmpty

bool Cogs::Core::SparseOctree::OctreeInfo::isEmpty = false

Definition at line 201 of file SparseBuildOctree.h.

◆ keepList

std::string Cogs::Core::SparseOctree::OctreeInfo::keepList

("rvm.tagSimplify.keepList")

Definition at line 154 of file SparseBuildOctree.h.

◆ layer

std::string Cogs::Core::SparseOctree::OctreeInfo::layer

Definition at line 143 of file SparseBuildOctree.h.

◆ layerAndName

std::string Cogs::Core::SparseOctree::OctreeInfo::layerAndName

Definition at line 151 of file SparseBuildOctree.h.

◆ layerDirectory

std::string Cogs::Core::SparseOctree::OctreeInfo::layerDirectory

Definition at line 148 of file SparseBuildOctree.h.

◆ levelReducer

LevelReducer Cogs::Core::SparseOctree::OctreeInfo::levelReducer = LevelReducer::RationalReducerVertexCount

Definition at line 156 of file SparseBuildOctree.h.

◆ maxBounds

glm::vec3 Cogs::Core::SparseOctree::OctreeInfo::maxBounds

Definition at line 197 of file SparseBuildOctree.h.

◆ maxMeshVertexCount

int Cogs::Core::SparseOctree::OctreeInfo::maxMeshVertexCount = 80000

The number of vertices in a mesh before we split it. Used to split cells with very much geometry into multiple meshes to avoid stalling when loading a single huge mesh. Set to zero to disable.

Definition at line 174 of file SparseBuildOctree.h.

◆ maxModelMeshCount

int Cogs::Core::SparseOctree::OctreeInfo::maxModelMeshCount = 20

The max number of meshes to be packed into a shared model file. Increase this number to reduce the number of small model files, at the expense of loading unnecessary data.

Definition at line 184 of file SparseBuildOctree.h.

◆ maxModelVertexCount

int Cogs::Core::SparseOctree::OctreeInfo::maxModelVertexCount = 50000

Meshes with more vertices than this will be put into its own model file. Smaller meshes are packed together in shared model files. Set to zero to disable.

Definition at line 179 of file SparseBuildOctree.h.

◆ maxSubtreeSize

uint32_t Cogs::Core::SparseOctree::OctreeInfo::maxSubtreeSize = 0

Max number of items (lod-nodes/models) in a subtree of the lod-hierarchy before packing it in its own .asset file. Set to zero to disable.

Definition at line 168 of file SparseBuildOctree.h.

◆ minBounds

glm::vec3 Cogs::Core::SparseOctree::OctreeInfo::minBounds

Definition at line 196 of file SparseBuildOctree.h.

◆ minReductionThreshold

int Cogs::Core::SparseOctree::OctreeInfo::minReductionThreshold = 500

Definition at line 192 of file SparseBuildOctree.h.

◆ name

std::string Cogs::Core::SparseOctree::OctreeInfo::name

Definition at line 145 of file SparseBuildOctree.h.

◆ outlierMaxVolume

float Cogs::Core::SparseOctree::OctreeInfo::outlierMaxVolume = 1.0f

Definition at line 187 of file SparseBuildOctree.h.

◆ outlierMinVertexCount

int Cogs::Core::SparseOctree::OctreeInfo::outlierMinVertexCount = 10'000

Definition at line 186 of file SparseBuildOctree.h.

◆ outlierMinVertexDensity

float Cogs::Core::SparseOctree::OctreeInfo::outlierMinVertexDensity = 10'000'000

Definition at line 188 of file SparseBuildOctree.h.

◆ outputOutliers

bool Cogs::Core::SparseOctree::OctreeInfo::outputOutliers = false

Definition at line 159 of file SparseBuildOctree.h.

◆ prettyPrint

bool Cogs::Core::SparseOctree::OctreeInfo::prettyPrint = false

Definition at line 204 of file SparseBuildOctree.h.

◆ properties

PropertyStore Cogs::Core::SparseOctree::OctreeInfo::properties

Copy of all properties set for the BuildOctreeCommand Editor command. TODO: Replace many of the hardcoded values below with property accesses. TODO: Also pass all these properties on to ModelLoadInfo properties.

Definition at line 141 of file SparseBuildOctree.h.

◆ skipPattern

std::string Cogs::Core::SparseOctree::OctreeInfo::skipPattern

Definition at line 152 of file SparseBuildOctree.h.

◆ source

std::string Cogs::Core::SparseOctree::OctreeInfo::source

Definition at line 144 of file SparseBuildOctree.h.

◆ statistics

bool Cogs::Core::SparseOctree::OctreeInfo::statistics = false

Calculate statistics for resulting hierarchy.

Definition at line 162 of file SparseBuildOctree.h.

◆ taskFilter

std::string Cogs::Core::SparseOctree::OctreeInfo::taskFilter

RVM tasks definitions runs in given order. Complete JSON description of all Rvm task to run. Property key: ("rvm.tasks") Syntax follows RvmProc filter description, but no input files allowed. { "tasks" : [ { "kind": "calc-bbox" }, { "kind": "XXX", "Param1" = 2 }, ] } "rvm.tasks". std::string tasks; Complete JSON description for Task: Filter. Replaces all filter params below. Syntax: JSON for the single filtering task: { "kind": "filter", "filter" : { "rootEndsWith": "XXX" }

Definition at line 225 of file SparseBuildOctree.h.

◆ useCompression

bool Cogs::Core::SparseOctree::OctreeInfo::useCompression = false

Definition at line 203 of file SparseBuildOctree.h.

◆ useMaxBounds

bool Cogs::Core::SparseOctree::OctreeInfo::useMaxBounds = false

Definition at line 199 of file SparseBuildOctree.h.

◆ useMinBounds

bool Cogs::Core::SparseOctree::OctreeInfo::useMinBounds = false

Definition at line 198 of file SparseBuildOctree.h.


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