Class Edge
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
Edge(Point3d, Point3d, Point3d, Plane)
Construct Edge of arc2 type.
public Edge(Point3d start, Point3d mid, Point3d end, Plane plane)
Parameters
Edge(Point3d, Point3d, Vector3d)
Construct Edge of line type by points and normal (localY).
public Edge(Point3d startPoint, Point3d endPoint, Vector3d localY = null)
Parameters
Edge(double, Point3d, Plane)
Construct Edge of circle type.
public Edge(double radius, Point3d center, Plane plane)
Parameters
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
radiusdoublestartAngledoubleendAngledoublecenterPointPoint3dxAxisVector3dcoordinateSystemPlane
Fields
Points
public List<Point3d> Points
Field Value
_endAngle
public double _endAngle
Field Value
_radius
public double _radius
Field Value
_startAngle
public double _startAngle
Field Value
_type
public string _type
Field Value
Properties
EdgeConnection
public EdgeConnection EdgeConnection { get; set; }
Property Value
EndAngle
public double EndAngle { get; set; }
Property Value
Length
public double Length { get; }
Property Value
Normal
public Vector3d Normal { get; set; }
Property Value
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
Radius
public double Radius { get; set; }
Property Value
StartAngle
public double StartAngle { get; set; }
Property Value
Type
public string Type { get; set; }
Property Value
XAxis
public Vector3d XAxis { get; set; }
Property Value
Methods
GetIntermediatePoint(double)
public Point3d GetIntermediatePoint(double percentage)
Parameters
percentagedouble
Returns
IsLine()
Check if line
public bool IsLine()
Returns
IsLineTangentEqualToGlobalZ()
Check if line local x is equal to positive global Z
public bool IsLineTangentEqualToGlobalZ()
Returns
IsLineVertical()
Check if line is vertical (i.e. parallel to global Z)
public bool IsLineVertical()
Returns
Reverse()
Reverse this edge
public void Reverse()
ShouldSerialize_radius()
public bool ShouldSerialize_radius()
Returns
Operators
explicit operator LineSegment(Edge)
Convert an Edge to a LineSegment
public static explicit operator LineSegment(Edge edge)
Parameters
edgeEdge
Returns
implicit operator Edge_type(Edge)
public static implicit operator Edge_type(Edge obj)
Parameters
objEdge
Returns
implicit operator Edge(Edge_type)
public static implicit operator Edge(Edge_type obj)
Parameters
objEdge_type