FileObjWriteOptions

References
public class FileObjWriteOptions

Constructors

FileObjWriteOptions

#Since v6.0
public FileObjWriteOptions(
writeOptions
)

Fields

AngleTolRadians

#
If trim is TL_OBJ_FILE_TRIM_POLYLINE, angle_tol (in radians) controls the level of linearization on parameter space trimming curves.
public readonly double AngleTolRadians

WriteOptions

#
public FileWriteOptions WriteOptions

Properties

ActualFilePathOnMac

#Since v6.3
public string ActualFilePathOnMac { get; set; }
Remarks: The path passed to FileExportPlugIn::WriteFile on the Mac is a temporary path. The calling function takes care of moving the temp (.obj) file to it's appropriate location. We can't use that to write that path to construct the .mat file because the calling function doesn't know anything about it. ActualFilePathOnMac is the path of the obj file's ultimate destination. It's only meaningful on the Mac platform.

CreateNgons

#Since v6.0
Setting to enable/disable the creation of ngons for the output
public bool CreateNgons { get; set; }
obsoleteUse NgonMode.

CullUnnecessaryVertexesInNgons

#Since v6.0
Setting to determine whether interior collinear vertexes are part of the ngon.
public bool CullUnnecessaryVertexesInNgons { get; set; }
Remarks: Imagine a plane that has been split and then rejoined. If IncludeUnweldedEdgesInNgons is set to true then you would get an ngon with 6 vertexes, the corners and one on each edge that was split. Setting this to true would remove those 2 vertexes from the interior of the edge. TODO This is not hooked up yet, Dale hasn't made this available yet. See RH-30673.

EolType

#Since v6.0
public FileObjWriteOptions.AsciiEol EolType { get; set; }
Remarks: Alias/Wavefront OBJ files are ASCII files. Generally they should have a LF (UNIX) as the end-of-line marker.

ExportAsTriangles

#Since v7.4
Enable/disable export of faces as triangles.
public bool ExportAsTriangles { get; set; }

ExportGroupNameLayerNames

#Since v6.0
Setting to determine whether object, group or layer names will become "g"s in the OBJ output file
public FileObjWriteOptions.ObjGroupNames ExportGroupNameLayerNames { get; set; }

ExportMaterialDefinitions

#Since v6.0
Setting to write an .mtl file and "usemtl"s in the obj file
public bool ExportMaterialDefinitions { get; set; }

ExportNormals

#Since v6.0
Enable/disable export of vertex normals, if they exist.
public bool ExportNormals { get; set; }

ExportObjectNames

#Since v6.0
Setting to determine what object names in Rhino will become in the OBJ output file
public FileObjWriteOptions.ObjObjectNames ExportObjectNames { get; set; }

ExportOpenMeshes

#Since v6.0
Enable/Disable bailing when an open mesh is encountered.
public bool ExportOpenMeshes { get; set; }

ExportTcs

#Since v6.0
Enable/disable export of texture coordinates, if they exist.
public bool ExportTcs { get; set; }

ExportVcs

#Since v6.0
Enable/disable export of vertex colors, if they exist.
public bool ExportVcs { get; set; }

IncludeUnweldedEdgesInNgons

#Since v6.0
Setting to determine whether unwelded edges are ignored in the creation of an ngon.
public bool IncludeUnweldedEdgesInNgons { get; set; }
Remarks: Imagine a plane that has been split and then rejoined. This setting determines if you will get one or two ngons in the output. TODO This is not hooked up yet, Dale hasn't made this available yet. See RH-30673.

MapZtoY

#Since v6.0
Setting to transform Rhino's Z axis to OBJ's Y axis
public bool MapZtoY { get; set; }

MergeNestedGroupingNames

#Since v6.7
Setting to merge nested layer or group names into a single OBJ group name
public bool MergeNestedGroupingNames { get; set; }
Remarks: Setting this to true will take a layer setup like this in Rhino Grandparent Parent Child and make a group name of Grandparent__Parent__Child in obj. If false it will be 3 separate group names in obj and will look like this in the file. g Grandparent Parent Child

MeshParameters

#Since v6.0
Mesh parameters to use when meshing geometry that is not already a mesh.
public MeshingParameters MeshParameters { get; set; }

MeshType

#Since v6.0
public FileObjWriteOptions.VertexWelding MeshType { get; set; }

MinNgonFaceCount

#Since v6.0
Minimum number of faces to consider creation of ngon
public int MinNgonFaceCount { get; set; }

NgonMode

#Since v7.0
public FileObjWriteOptions.NGons NgonMode { get; set; }

ObjectType

#Since v6.0
public FileObjWriteOptions.GeometryType ObjectType { get; set; }

PolylineType

#Since v8.0
public FileObjWriteOptions.PolylineExportType PolylineType { get; set; }

SignificantDigits

#Since v6.0
Number of significant digits to write out for floating point numbers
public int SignificantDigits { get; set; }

SortObjGroups

#Since v6.0
Setting to enable/disable sorting of OBJ groups
public bool SortObjGroups { get; set; }
Remarks: This is mainly for the sake of making an obj file more human readable, however, it is important that it happens when a user has opted to write Rhino groups as OBJ "g"s since it is not necessary for every object in Rhino to be part of a group.

SubDMeshType

#Since v7.0
public FileObjWriteOptions.SubDMeshing SubDMeshType { get; set; }

SubDSurfaceMeshingDensity

#Since v7.0
Determines how coarse the mesh output will be when surface meshing subd objects See comments for ON_SubDDisplayParameters in opennurbs_mesh.h for details regarding numbers used.
public int SubDSurfaceMeshingDensity { get; set; }

TrimCurveType

#Since v6.0
trimming curve option
public FileObjWriteOptions.CurveType TrimCurveType { get; set; }

UnderbarMaterialNames

#Since v6.0
Enable/disable replacing white space with under-bars in material names.
public bool UnderbarMaterialNames { get; set; }

UseDisplayColorForMaterial

#Since v7.0
Setting to display color as material when material index for object is -1.
public bool UseDisplayColorForMaterial { get; set; }

UseRelativeIndexing

#Since v6.0
Determines whether to use relative indexing. TRUE = use relative (negative) indexing FALSE = use absolute (positive) indexing
public bool UseRelativeIndexing { get; set; }
Remarks: This only has an impact on non-mesh output. There is also no interface in the OBJ export plug-in so code executed when set to true has not been thoroughly tested. It has been there forever and migrated with each successive revision of OBJ export code.

UseRenderMeshes

#Since v7.0
Use existing or generate render meshes instead of calling RhinoObject.MeshObjects.
public bool UseRenderMeshes { get; set; }

UseSimpleDialog

#Since v6.0
Determines whether to use the simple or detailed meshing dialog.
public bool UseSimpleDialog { get; set; }

VcsFormat

#Since v8.0
Export vertex colors as 0 == floats (0.0-1.0) or 1 == ints (0-255)
public int VcsFormat { get; set; }

WrapLongLines

#Since v6.0
Setting to enable/disable line wrapping with "\"s
public bool WrapLongLines { get; set; }

Methods

GetTransform

#Since v6.0
Calculates the transform combination of ZToY and any the translation that might occur in a SavewithOrigin.
public Transform GetTransform()