Table of Contents

Struct Triangle3DF

Namespace
Emgu.CV.Structure
Assembly
Emgu.CV.dll

A 3D triangle

public struct Triangle3DF : IEquatable<Triangle3DF>
Implements
Inherited Members

Constructors

Triangle3DF(MCvPoint3D32f, MCvPoint3D32f, MCvPoint3D32f)

Create a triangle using the specific vertices

public Triangle3DF(MCvPoint3D32f v0, MCvPoint3D32f v1, MCvPoint3D32f v2)

Parameters

v0 MCvPoint3D32f

The first vertex

v1 MCvPoint3D32f

The second vertex

v2 MCvPoint3D32f

The third vertex

Properties

Area

Get the area of this triangle

public double Area { get; }

Property Value

double

Centeroid

Returns the centroid of this triangle

public MCvPoint3D32f Centeroid { get; }

Property Value

MCvPoint3D32f

Normal

Get the normal of this triangle

public MCvPoint3D32f Normal { get; }

Property Value

MCvPoint3D32f

V0

One of the vertex of the triangle

public MCvPoint3D32f V0 { get; set; }

Property Value

MCvPoint3D32f

V1

One of the vertex of the triangle

public MCvPoint3D32f V1 { get; set; }

Property Value

MCvPoint3D32f

V2

One of the vertex of the triangle

public MCvPoint3D32f V2 { get; set; }

Property Value

MCvPoint3D32f

Methods

Equals(Triangle3DF)

Compare two triangles and return true if equal

public bool Equals(Triangle3DF tri)

Parameters

tri Triangle3DF

the other triangles to compare with

Returns

bool

true if the two triangles equals, false otherwise