Table of Contents

Class Edge

Namespace
FemDesign.Geometry
Assembly
FemDesign.Core.dll

edge_type

Curves in FEM-Design are expressed as edges. This extended edge also contains a LCS to keep track of directions.

public class Edge
Inheritance
Edge
Derived
Inherited Members
Extension Methods

Constructors

Edge(Point3d, Point3d, Plane)

Construct Edge of line type by points and coordinate system.

public Edge(Point3d start, Point3d end, Plane plane)

Parameters

start Point3d
end Point3d
plane Plane

Edge(Point3d, Point3d, Point3d, Plane)

Construct Edge of arc2 type.

public Edge(Point3d start, Point3d mid, Point3d end, Plane plane)

Parameters

start Point3d
mid Point3d
end Point3d
plane Plane

Edge(Point3d, Point3d, Vector3d)

Construct Edge of line type by points and normal (localY).

public Edge(Point3d startPoint, Point3d endPoint, Vector3d localY = null)

Parameters

startPoint Point3d
endPoint Point3d
localY Vector3d

Edge(double, Point3d, Plane)

Construct Edge of circle type.

public Edge(double radius, Point3d center, Plane plane)

Parameters

radius double
center Point3d
plane Plane

Edge(double, double, double, Point3d, Vector3d, Plane)

Construct Edge of arc1 type.

public Edge(double radius, double startAngle, double endAngle, Point3d centerPoint, Vector3d xAxis, Plane coordinateSystem)

Parameters

radius double
startAngle double
endAngle double
centerPoint Point3d
xAxis Vector3d
coordinateSystem Plane

Fields

Points

public List<Point3d> Points

Field Value

List<Point3d>

_endAngle

public double _endAngle

Field Value

double

_radius

public double _radius

Field Value

double

_startAngle

public double _startAngle

Field Value

double

_type

public string _type

Field Value

string

Properties

EdgeConnection

public EdgeConnection EdgeConnection { get; set; }

Property Value

EdgeConnection

EndAngle

public double EndAngle { get; set; }

Property Value

double

Length

public double Length { get; }

Property Value

double

Normal

public Vector3d Normal { get; set; }

Property Value

Vector3d

Plane

Get/Set LCS

If no LCS exists on Edge (i.e. when an Edge was deserialized from path) an LCS will be reconstructed.

public Plane Plane { get; set; }

Property Value

Plane

Radius

public double Radius { get; set; }

Property Value

double

StartAngle

public double StartAngle { get; set; }

Property Value

double

Type

public string Type { get; set; }

Property Value

string

XAxis

public Vector3d XAxis { get; set; }

Property Value

Vector3d

Methods

GetIntermediatePoint(double)

public Point3d GetIntermediatePoint(double percentage)

Parameters

percentage double

Returns

Point3d

IsLine()

Check if line

public bool IsLine()

Returns

bool

IsLineTangentEqualToGlobalZ()

Check if line local x is equal to positive global Z

public bool IsLineTangentEqualToGlobalZ()

Returns

bool

IsLineVertical()

Check if line is vertical (i.e. parallel to global Z)

public bool IsLineVertical()

Returns

bool

Reverse()

Reverse this edge

public void Reverse()

ShouldSerialize_radius()

public bool ShouldSerialize_radius()

Returns

bool

Operators

explicit operator LineSegment(Edge)

Convert an Edge to a LineSegment

public static explicit operator LineSegment(Edge edge)

Parameters

edge Edge

Returns

LineSegment

implicit operator Edge_type(Edge)

public static implicit operator Edge_type(Edge obj)

Parameters

obj Edge

Returns

Edge_type

implicit operator Edge(Edge_type)

public static implicit operator Edge(Edge_type obj)

Parameters

obj Edge_type

Returns

Edge