Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Splines connecting at one point

bravaiser
Enthusiast

Splines connecting at one point

bravaiser
Enthusiast
Enthusiast

I have created splines using the following pseudo code:

 

 

Point2d[] oPPo = new Point2d[10]; // max number on the splines 

ObjectCollection oFitPoints = mApp.TransientObjects.CreateObjectCollection();
PlanarSketch oSketch = default(PlanarSketch);

for (int l = 0; l < splinesInFile; l++)
{
                    for (int k = 0; k < numberOfKnots; k++)
                    {
                        oPPo[k].X =(double) valueInX;
                        oPPo[k].Y =(double) valueInY;
                    }
for (int k = 0; k < numberOfKnots; k++)
                    {
                        oFitPoints.Add(oPPo[k]);
                    }

oSketch.SketchSplines.Add(oFitPoints,SplineFitMethodEnum.kSmoothSplineFit);
}

oProfile = oSketch.Profiles.AddForSolid();

this works rather well, except that the splines are separated. Even when I use the same point to start or finish the spline, they are not connected, which causes that extrusion is not possible afterwards. As if the regions are not connected.

 

 

How can I connect the splines using a constraint or locating the splines under the same sketch ?

 

thank you in advance

 

0 Likes
Reply
226 Views
0 Replies
Replies (0)