MaterialX 1.38.9
Loading...
Searching...
No Matches
Geom.h File Reference

Geometric element subclasses. More...

Go to the source code of this file.

Classes

class  GeomPath
 A MaterialX geometry path, representing the hierarchical location expressed by a geometry name. More...
 
class  GeomElement
 The base class for geometric elements, which support bindings to geometries and geometric collections. More...
 
class  GeomInfo
 A geometry info element within a Document. More...
 
class  GeomProp
 A geometric property element within a GeomInfo. More...
 
class  GeomPropDef
 An element representing a declaration of geometric property data. More...
 
class  Collection
 A collection element within a Document. More...
 

Typedefs

using GeomElementPtr = shared_ptr< GeomElement >
 A shared pointer to a GeomElement.
 
using ConstGeomElementPtr = shared_ptr< const GeomElement >
 A shared pointer to a const GeomElement.
 
using GeomInfoPtr = shared_ptr< GeomInfo >
 A shared pointer to a GeomInfo.
 
using ConstGeomInfoPtr = shared_ptr< const GeomInfo >
 A shared pointer to a const GeomInfo.
 
using GeomPropPtr = shared_ptr< GeomProp >
 A shared pointer to a GeomProp.
 
using ConstGeomPropPtr = shared_ptr< const GeomProp >
 A shared pointer to a const GeomProp.
 
using GeomPropDefPtr = shared_ptr< GeomPropDef >
 A shared pointer to a GeomPropDef.
 
using ConstGeomPropDefPtr = shared_ptr< const GeomPropDef >
 A shared pointer to a const GeomPropDef.
 
using CollectionPtr = shared_ptr< Collection >
 A shared pointer to a Collection.
 
using ConstCollectionPtr = shared_ptr< const Collection >
 A shared pointer to a const Collection.
 

Functions

MX_CORE_API bool geomStringsMatch (const string &geom1, const string &geom2, bool contains=false)
 Given two geometry strings, each containing an array of geom names, return true if they have any geometries in common. More...
 

Variables

MATERIALX_NAMESPACE_BEGIN MX_CORE_API const string GEOM_PATH_SEPARATOR
 
MX_CORE_API const string UNIVERSAL_GEOM_NAME
 
MX_CORE_API const string UDIM_TOKEN
 
MX_CORE_API const string UV_TILE_TOKEN
 
MX_CORE_API const string UDIM_SET_PROPERTY
 

Detailed Description

Geometric element subclasses.

Function Documentation

◆ geomStringsMatch()

MX_CORE_API bool geomStringsMatch ( const string &  geom1,
const string &  geom2,
bool  contains = false 
)

Given two geometry strings, each containing an array of geom names, return true if they have any geometries in common.

An empty geometry string matches no geometries, while the universal geometry string "/" matches all non-empty geometries.

If the contains argument is set to true, then we require that a geom path in the first string completely contains a geom path in the second string.