C# Class SolidworksAddinFramework.Geometry.BSplineFace

Show file Open project: Weingartner/SolidworksAddinFramework

Private Properties

Property Type Description
ToRationalVector3 System.Vector3
ToRationalVector4WithWeighRescaling System.Vector4

Public Methods

Method Description
BSplineFace ( BSplineSurface surface, IReadOnlyList trimLoops ) : System
Create ( IFace2 swFace ) : BSplineFace

Create a BSplineFace from the TrimCurve data. http://help.solidworks.com/2015/English/api/sldworksapi/SOLIDWORKS.Interop.sldworks~SOLIDWORKS.Interop.sldworks.IFace2~GetTrimCurves2.html

ToSheetBody ( ) : Option

Generates a solidworks sheet body representation of the bspline face.

TransformSurfaceControlPoints ( Func xformSurface ) : BSplineFace
fixLoops ( IReadOnlyList trimLoops ) : void

Make sure that the last point of each sub curve is exactly the same as the first point of the next sub curve.

Private Methods

Method Description
ToRationalVector3 ( IList data ) : System.Vector3
ToRationalVector4WithWeighRescaling ( IList data ) : System.Vector4

This transforms solidworks (X,Y,Z,W) to (X*W,Y*W,Z*W,W) format that is nurbs book standard

Method Details

BSplineFace() public method

public BSplineFace ( BSplineSurface surface, IReadOnlyList trimLoops ) : System
surface BSplineSurface
trimLoops IReadOnlyList
return System

Create() public static method

Create a BSplineFace from the TrimCurve data. http://help.solidworks.com/2015/English/api/sldworksapi/SOLIDWORKS.Interop.sldworks~SOLIDWORKS.Interop.sldworks.IFace2~GetTrimCurves2.html
public static Create ( IFace2 swFace ) : BSplineFace
swFace IFace2
return BSplineFace

ToSheetBody() public method

Generates a solidworks sheet body representation of the bspline face.
public ToSheetBody ( ) : Option
return Option

TransformSurfaceControlPoints() public method

public TransformSurfaceControlPoints ( Func xformSurface ) : BSplineFace
xformSurface Func
return BSplineFace

fixLoops() public static method

Make sure that the last point of each sub curve is exactly the same as the first point of the next sub curve.
public static fixLoops ( IReadOnlyList trimLoops ) : void
trimLoops IReadOnlyList
return void