Show / Hide Table of Contents

Class LinearSegment

Represents a linear segment of a CurvePart by using a list of float3s. A CurveSgment does not know its own start point. For the first CurveSegment in a sequence the start point is saved in the CurvePart belonging to the segment. The start point for the CurveSegment with index i is the last vertex in the CurveSegent[i-1]'s list of vertices.

Inheritance
System.Object
CurveSegment
LinearSegment
Inherited Members
CurveSegment.Vertices
CurveSegment.CalcPoint(Single, float3[])
CurveSegment.SplitCurve(Single, float3[], List<float3>, List<float3>)
CurveSegment.CalcAdaptivePolylineWAngle(float3, Int32, Int32)
CurveSegment.CalcAdaptivePolylineWArcreage(float3, Single, Int32)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Math.Core
Assembly: Fusee.Math.Core.dll
Syntax
public class LinearSegment : CurveSegment

Methods

CalcUniformPolyline(float3, Int32, Int32)

Calculates a polygonal chain, representing the curve segment.

Declaration
public override IEnumerable<float3> CalcUniformPolyline(float3 startPoint, int segmentsPerCurve, int degree)
Parameters
Type Name Description
float3 startPoint

The segment's starting point

System.Int32 segmentsPerCurve

The number of segments per curve

System.Int32 degree

The degree of the curve: 1 for linear, 2 for conic, 3 for cubic

Returns
Type Description
System.Collections.Generic.IEnumerable<float3>
Overrides
CurveSegment.CalcUniformPolyline(float3, Int32, Int32)
Generated by DocFX
GitHub Repo
Back to top