GTriangle Class

Triangular face entity.
Public Class GTriangle 
Inherits GEntity 
Implements IGFace
This language is not supported or no code example is available.
public class GTriangle : GEntity
IGFace
This language is not supported or no code example is available.
Name Description
Public property EntityData Gets or sets the entity custom data. (inherited from GEntity).
Public property Normal Gets or sets the triangle's normal.
Public property V1 Gets or sets the first vertex.
Public property V2 Gets or sets the second vertex.
Public property V3 Gets or sets the third vertex.
Top
Methods
 
Name Description
Public method Static Area(Point3D, Point3D, Point3D) Computes the area of a triangle.
Public method Static Area2D(double, double, double, double, double, double) Computes the projected area (on plane XY) of a triangle.
Public method Static Centroid(Point3D, Point3D, Point3D) Computes the centroid of a triangle.
Public method Clone() Creates a deep copy of this triangle.
Protected method ComputeApproximatedBoundingBox(out Point3D, out Point3D) Computes the primitive's approximated bounding box. (inherited from GEntity).
Public method ComputeTessellation(IRegenParams, out TessellationData)
Public method ComputeTessellation(double, out TessellationData)
Public method ConvertToMesh(double, double, natureType, bool)
Public method ConvertToSurrogate() Converts the GEntity to its surrogate, for serialization purpose.
Public method Dump() Returns a description of this entity.
Public method Equals(Object) (inherited from Object).
Protected method Finalize (inherited from Object).
Public method FindClosestTriangle(Transformation, Segment3D) Returns a list of triangles hit by the provided segment.
Public method FlipNormal()
Public method GetArea(out Point3D) Computes the area of the triangle entity.
Protected method Static GetClosestMainAxis(Vector3D) (inherited from GEntity).
Public method GetCoarseSampling() Returns a small set of points that gives a coarse idea of the 3D extent of the primitive.
Public method GetHashCode (inherited from Object).
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Protected method Static GetOffsetDistance(Vector3D, Vector3D, double) (inherited from GEntity).
Public method GetPerimeter() Computes the perimeter of the triangle entity.
Public method GetType (inherited from Object).
Public method GetXElement()
Public method IsValid() Returns true if all the entity fields contain reasonable information.
Protected method MemberwiseClone (inherited from Object).
Public method ResetComputedData() Resets needed primitive's geometrical attributes to recompute. (inherited from GEntity).
Public method Rotate(double, Vector3D, Point3D) Rotates the entity around an arbitrary axis by the specified angle. (inherited from GEntity).
Public method Rotate(double, Point3D, Point3D) Rotates the entity around an arbitray axis by the specified angle. (inherited from GEntity).
Public method Rotate(double, Vector3D) Rotates the entity around an arbitray axis by the specified angle. (inherited from GEntity).
Public method Scale(Point3D, double, double, double) Scales the entity of the specified scale factor. (inherited from GEntity).
Public method Scale(Point3D, double) Scales the entity of the specified scale factor. (inherited from GEntity).
Public method Scale(Vector3D) Scales the entity of the specified scale factor. (inherited from GEntity).
Public method Scale(double) Scales the entity of the specified scale factor. (inherited from GEntity).
Public method Scale(double, double, double) Scales the entity of the specified scale factor. (inherited from GEntity).
Public method Section(Plane, double)
Public method ToString (inherited from Object).
Internal protected (Protected Friend) method TransformAllVertices(Point3D[], Transformation, bool, bool) (inherited from GEntity).
Public method TransformBy(Transformation) Transforms all the entity's vertices by the specified transformation.
Public method Translate(double, double, double) Translates the entity. (inherited from GEntity).
Public method Translate(Vector3D) Translates the entity. (inherited from GEntity).
Top

.NET Framework

Supported in: 4.7.2

In this article

Definition