Reads triangular and quad faces defined in an OFF-format file.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public void Read(
	string infile
)
Visual Basic (Declaration)
Public Sub Read ( _
	infile As String _
)
Visual C++
public:
void Read(
	String^ infile
)

Parameters

infile
Type: System..::.String
The OFF file.

Remarks

The number of triangles is not always the number of faces defined in the OFF file, because quad faces defined in the OFF file are converted into two triangular faces. Quad faces defined in the OFF file are automatically converted into two triangular faces. The class does not support polygons with more than four vertices.

Exceptions

ExceptionCondition
System..::.NotImplementedExceptionA polygon with less than three vertices or more than four vertices has been defined in the .off file.

See Also