Bug? "Perpendicular frame could not be solved"

Perpendicular frame could not be solved.gh (6.9 KB)
I am using R8 SR13 on Windows 11.

I baked the arc, moved the middle control point away and back and then it works. Weird.


Perpendicular frame_2024Dec1a.gh (4.6 KB)

Perpendicular_frame_script_cs.gh (9.7 KB)

Evaluating the curve with rhinocommon works…
the attached script does the job.
so maybe it is a bug ?

    private void RunScript(Curve crv, double t, ref object a)
    {
        Point3d ptt = crv.PointAt(t);
        Vector3d vt, vn, vy;
        vt = crv.TangentAt(t);
        vn = crv.CurvatureAt(t);
        if (vn.IsTiny())
        {
            a = Plane.CreateFromNormal(ptt,vt);
        } else
        {
            vt.Unitize();
            vn.Unitize();
            vy = Vector3d.CrossProduct(vt,vn);
            a = new Plane(ptt,vn,vy);
        }
    }

maybe the gh component does handle some special cases - but does to much safety and fails ?

EDIT:
…also rotating the curve by 45 degree (but not 1 degree) will result in a correct perpendicular frames from the component…

Is this a bug?

I have the same issue, opened the gh code in rhino 7 and perp frame worked.
BUG in rhino 8
PERPFRAME.gh (18.4 KB)

I don’t know what you expect but don’t see any issue (other than ‘Display | Preview Plane Size’) in this code between R7 and R8?


PERPFRAME_2025Mar17a.gh (24.2 KB)

Hi @Quan_Li,

Here the ticket RH-86538.

Thanks for reporting.

@kike ,Please also look into this, see if this is a bug.

[Bug?] Trimmed surface’s Isocurves missing at the seam position - Grasshopper - McNeel Forum

[BUG?] Trimmed surface shows fewer isocurves - Grasshopper - McNeel Forum

RH-86538 is fixed in Rhino 8 Service Release 20

1 Like