Click or drag to resize

FileObjWrite Method (StreamWriter, RhinoDoc, FileObjWriteOptions)

Write an obj stream based on the contents of a RhinoDoc

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static WriteFileResult Write(
	StreamWriter stream,
	RhinoDoc doc,
	FileObjWriteOptions options
)

Parameters

stream
Type: System.IOStreamWriter

[Missing <param name="stream"/> documentation for "M:Rhino.FileIO.FileObj.Write(System.IO.StreamWriter,Rhino.RhinoDoc,Rhino.FileIO.FileObjWriteOptions)"]

doc
Type: RhinoRhinoDoc

[Missing <param name="doc"/> documentation for "M:Rhino.FileIO.FileObj.Write(System.IO.StreamWriter,Rhino.RhinoDoc,Rhino.FileIO.FileObjWriteOptions)"]

options
Type: Rhino.FileIOFileObjWriteOptions

[Missing <param name="options"/> documentation for "M:Rhino.FileIO.FileObj.Write(System.IO.StreamWriter,Rhino.RhinoDoc,Rhino.FileIO.FileObjWriteOptions)"]

Return Value

Type: WriteFileResult

[Missing <returns> documentation for "M:Rhino.FileIO.FileObj.Write(System.IO.StreamWriter,Rhino.RhinoDoc,Rhino.FileIO.FileObjWriteOptions)"]

Remarks
No .mtl file is written, hence no materials, when the WriteFile that takes a StreamWriter is called directly. If you need materials call the WriteFile that takes a string for the obj file path.
See Also