C# Class SolidworksAddinFramework.Geometry.BSplineFace

Afficher le fichier Open project: Weingartner/SolidworksAddinFramework

Private Properties

Свойство Type Description
ToRationalVector3 System.Vector3
ToRationalVector4WithWeighRescaling System.Vector4

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BSplineFace ( BSplineSurface surface, IReadOnlyList trimLoops ) : System
surface BSplineSurface
trimLoops IReadOnlyList
Résultat System

Create() public static méthode

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
Résultat BSplineFace

ToSheetBody() public méthode

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

TransformSurfaceControlPoints() public méthode

public TransformSurfaceControlPoints ( Func xformSurface ) : BSplineFace
xformSurface Func
Résultat BSplineFace

fixLoops() public static méthode

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
Résultat void