Parameters#
- class omni.converter.dgn.Parameters#
Bases:
pybind11_objectDGN Converter Options Class.
Methods
__init__(self)parseArgs(self[, args])Parse SdfLayer::FileFormatArguments to populate the Parameters
toArgs(self)Create file format arguments that could be used to recreate these conversion parameters.
Attributes
Whether the global origin of Models are applied as an XformOp
Attributes to import where key = attribute name and value=custom attribute name to use in USD
If true then curve objects are imported as USD BasisCurves.
Whether to convert the element ID attribute
If true then hidden data is imported, it will be hidden in the USD Stage until activated/unhidden.
Creator version string
sets a fallback width for curve segments that do not have an explicit width set.
The style in how the DGN geometry attributes get authored to USD
List of level names to hide
Whether to hide defined levels based on the listed level names
Whether to import defined attributes
If true, enable instancing
Style of instancing to use in USD when handling Shared Cell References
List of level names to exclude during filtering
Styles to used to handle filtered levels
List of level names to include during filtering
ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).
If true then curve segments are merged if they have the same 'width'.
If true then meshes that share the same level and color are merged for optimization.
The style in which the values of attributes that differ between merged elements are stored
List of model names patterns for resolving DGN models to convert; model names can include wildcard characters ("*") to complete the rest of the model name during conversion wildcard characters can be placed at the beginning ("ault"), ending ("Def"), or both ("fau"); if the user provides patterns that do not match any models in the DGN file, then the file is not converted
If true then conversion progress will be reported
Distance tolerance for coincident faces.
Whether to triangulate Meshes
If true then use specified modes of materials.
- __init__( ) None#
- parseArgs(
- self: omni.converter.dgn._omni_converter_dgn.Parameters,
- args: Dict[str, str] = {},
Parse SdfLayer::FileFormatArguments to populate the Parameters
- Parameters:
str – JSON formatted string
- toArgs( ) Dict[str, str]#
Create file format arguments that could be used to recreate these conversion parameters.
- property applyGlobalOrigin#
Whether the global origin of Models are applied as an XformOp
- Type:
(bool)
- property attributes#
Attributes to import where key = attribute name and value=custom attribute name to use in USD
- Type:
(dict)
- property convertCurves#
If true then curve objects are imported as USD BasisCurves. If false, then we skip and do not Import any curve object to USD.
- Type:
(bool)
- property convertElementId#
Whether to convert the element ID attribute
- Type:
(bool)
- property convertHidden#
If true then hidden data is imported, it will be hidden in the USD Stage until activated/unhidden. If false, then we skip and do not Import the hidden data to USD.
- Type:
(bool)
- property creator#
Creator version string
- Type:
(str)
- property fallbackCurveWidth#
sets a fallback width for curve segments that do not have an explicit width set. If the fallback width is not set or <= 0 or omitted, no widths primvar is authored and the renderer’s default is used.
- Type:
(float)
- property geometryAttributeStyle#
The style in how the DGN geometry attributes get authored to USD
- Type:
(enum)
List of level names to hide
- Type:
(str[])
- property hideLevelsByList#
Whether to hide defined levels based on the listed level names
- Type:
(bool)
- property importAttributesByList#
Whether to import defined attributes
- Type:
(bool)
- property instancing#
If true, enable instancing
- Type:
(bool)
- property instancingStyle#
Style of instancing to use in USD when handling Shared Cell References
- Type:
(enum)
- property levelExcludes#
List of level names to exclude during filtering
- property levelFilterStyle#
Styles to used to handle filtered levels
- property levelIncludes#
List of level names to include during filtering
- property materialType#
ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).
- Type:
(enum)
- Type:
Material type
- property mergeCurves#
If true then curve segments are merged if they have the same ‘width’. If false then curve merging is skipped
- Type:
(bool)
- property mergeMeshes#
If true then meshes that share the same level and color are merged for optimization. If false then mesh merging is skipped
- Type:
(bool)
- property mergedAttributeStyle#
The style in which the values of attributes that differ between merged elements are stored
- Type:
(enum)
- property modelNamePatterns#
List of model names patterns for resolving DGN models to convert; model names can include wildcard characters (“*”) to complete the rest of the model name during conversion wildcard characters can be placed at the beginning (”ault”), ending (“Def”), or both (”fau”); if the user provides patterns that do not match any models in the DGN file, then the file is not converted
- Type:
(str[])
- property progressLogging#
If true then conversion progress will be reported
- Type:
(bool)
- property surfaceTolerance#
Distance tolerance for coincident faces. If zero or negative, the tolerance will be calculated as a percent of extents diagonal.
- Type:
(double)
- property triangulate#
Whether to triangulate Meshes
- Type:
(bool)
- property useMaterials#
If true then use specified modes of materials. if false, then use only basic display colors
- Type:
(bool)