Stitch Shapes
Stitch Shapes is how you combine two edges, internal edges, or points together and combine multiple shapes together to create a garment. Use the Stitch edge to create, delete a stitch and so on.
For more information about the feature, please visit here.
To learn more about the rest of the API, please refer to Stitch in the repository.
Sample Plugin
Sample plugin for garment creation is available here.
Create a Stitch
Code Snippet
Python C++ C#
Python
stitch_side1 = BwApi.StitchSide(from_shape, from_edge, 0, 100) stitch_side2 = BwApi.StitchSide(to_shape, to_edge, 0, 100) # Create a new stitch BwApi.StitchCreate(BwApi.GarmentID(), stitch_side1, stitch_side2)
C++
// Create a new stitch BwApiStitchCreate(garmentId, side1, side2);
C#
// Create a new stitch BwApi.StitchCreate(garmentId, side1, side2);