10#include "MaxUsd/MappedAttributeBuilder.h"
20 enum class MaxUSDAPI NormalsMode
31 enum class MaxUSDAPI MeshFormat
61 MaxUSDAPI
const std::map<int, maxUsd::MappedAttributeBuilder::Config>&
GetChannelMappings()
const;
67 MaxUSDAPI
void SetChannelMappings(
const std::map<int, maxUsd::MappedAttributeBuilder::Config>& mappings);
137 NormalsMode normalMode = NormalsMode::AsPrimVar;
139 MeshFormat meshFormat = MeshFormat::FromScene;
142 bool bakeObjectOffsetTransform =
true;
146 bool preserveEdgeOrientation =
false;
148 std::map<int, maxUsd::MappedAttributeBuilder::Config> channelToPrimvarConfig;
Definition: MaxMeshConversionOptions.h:13
MaxUSDAPI MeshFormat GetMeshFormat() const
Gets the MeshFormat to be used.
MaxUSDAPI void SetBakeObjectOffsetTransform(bool bakeObjectOffset)
Sets whether or not the Object-offset transform should be baked into the geometry....
MaxUSDAPI bool GetBakeObjectOffsetTransform() const
Gets whether or not the Object-offset transform should be baked into the geometry.
MaxUSDAPI MaxMeshConversionOptions()
Constructor.
MaxUSDAPI void SetNormalsMode(NormalsMode normalMode)
Sets the normal conversion mode.
MaxUSDAPI void SetChannelMappings(const std::map< int, maxUsd::MappedAttributeBuilder::Config > &mappings)
Sets the channel to primvar map.
MaxUSDAPI void SetPreserveEdgeOrientation(bool preserve)
Sets whether or not to preserve max edge orientation.
MaxUSDAPI const maxUsd::MappedAttributeBuilder::Config & GetChannelPrimvarConfig(int channelId) const
Returns the primvar configuration for the specified channel.
MaxUSDAPI NormalsMode GetNormalMode() const
Gets the normal conversion mode.
MaxUSDAPI void SetDefaultChannelPrimvarMappings()
Sets default channel to primvar mappings. alpha -> "displayOpacity" shading -> "mapShading" vertex co...
MaxUSDAPI void SetDefaults()
Sets default mesh conversion options. This includes a call to SetDefaultChannelPrimvarMappings().
MaxUSDAPI void SetChannelPrimvarConfig(int channel, const maxUsd::MappedAttributeBuilder::Config &config)
Configures a channel to primvar mapping. The specified channel will be exported using the given confi...
MaxUSDAPI bool GetPreserveEdgeOrientation() const
Gets whether or not to preserve max edge orientation.
MaxUSDAPI const std::map< int, maxUsd::MappedAttributeBuilder::Config > & GetChannelMappings() const
Returns the channel to primvar map.
MaxUSDAPI void SetMeshFormat(MeshFormat meshFormat)
Sets the mesh format to be used.