Skip to main content

VStitcher API Types

Updated over 2 weeks ago

struct BwApiCoordinatesXY

float x
float y


struct BwApiCoordinatesXYZ

float x
float y
float z


struct BwApiDimensions

float width
float height


struct BwApiPoint

float x
float y
BwApiPointType type
int gradeId *-1 if not graded


struct BwApiLine

BwApiCoordinatesXY start
BwApiCoordinatesXY end


struct BwApiStitchSide

int shapeId *must be valid, finalized existing shape id
int edgeId *if stitching from / to edge, otherwise -1
float marker1 *the start marker of the stitch side
float marker2 *the end marker of the stitch side


struct BwApiStitchSideEx

int shapeId *must be valid, finalized existing shape id
int edgeId *if stitching from / to edge, otherwise -1
int internalLineId *if stitching from / to internal line, otherwise -1
int internalPoint1Id *if this stitched contains only one internal point, set this to the internal point id and internalPoint2Id to -1
int internalPoint2Id *if this stitch contains two internal point set this to the second point, otherwise set to -1
float marker1 *the start marker of the stitch side (in case of internal point, set to 0 or 100)
float marker2 *the end marker of the stitch side (in case of internal point, set to 0 or 100)


struct BwApiShapeTransformation

BwApiCoordinatesXY offset *x,y offset in cm
float rotate *rotate angle from 0 to 2*PI


struct BwApiTransformation

BwApiCoordinatesXY offset *x,y offset in cm
BwApiDimensions dim *width, height in cm
float rotate *rotate angle from 0 to 2*PI


struct BwApiShapeDraping

int showIn3D *boolean (1/0), default value is 1
float grid *default value is 1
int layer *default value is 2
BwApiShapeCollisionType collisionType *default value is BW_API_SHAPE_COLLISION_TYPE_DEFAULT


struct BwApiClusterProperties

int symmetry *boolean (1/0), default value is 1
int innerSymmetry *boolean (1/0), default value is 1
int constrainedArea *boolean (1/0), default value is 0


struct BwApiClusterTransformation

BwApiCoordinatesXYZ offset *x,y,z (float) offset in cm
BwApiCoordinatesXYZ rotate *x,y,z (float) from 0 to 360
BwApiCoordinatesXYZ scale *x,y,z (float) from 5 to 100


struct BwApiDiamondDartPath

BwApiLine line
float width


struct BwApiEdgeShrinkProperties

float amount
float depth


struct BwApiEdgeForceMultipllerProperties

float amount
float depth


struct BwApiEdgePuffyProperties

float baffleWallHeight


struct BwApiInternalLineShrinkProperties

float amount


struct BwApiInternalLinePuffyProperties

float baffleWallHeight
BwApiInternalLinePuffyStitch stitchTo
BwApiInternalLinePuffySmooth smooth


struct BwApiInternalLineFoldProperties

float prepareAngle
float foldAngle
float smoothFold
float layerOffset


struct BwApiInternalLineIronProperties

float angle


struct BwApiPleatTransformation

float widthStart
float widthEnd *not relevant for open pleat
float depth *not relevant for knife pleat


struct BwApiWndRect

int x
int y
int width
int height


struct BwApiBezierPoint

BwApiPoint point
BwApiCoordinatesXY handle1
BwApiCoordinatesXY handle2


struct BwApiColor

int r
int g
int b


struct BwApiElement

int shapeId
int pointId
int cross *0 - not cross, 1 - cross, -1 - don't care
int lineId
int edgeId

Did this answer your question?