Curve.GetFilletPoints

Has anyone been able to verify or confirm our experience with this?

@fraguada - Can you help with this?

Hey @fergus.hudson, sorry you didn’t get a response. I looked into a little over the holidays but forgot to update the GitHub issue. I’ll do that now!

Thanks Will!

I’ll get our server updated and see if that fixes it.

Hmm, no luck with that…

It might have been more appropriate to post this here instead of github, apologies if so…:

I am unable to duplicate your experience @will . We have updated to commit 49dba9f: "rhino":"7.2.21012.11001","compute":"1.0.0.607","git_sha":"49dba9fb"}

I’ve used your copy/pasted code from the github issue:

import compute_rhino3d.Util
import rhino3dm
import os

if os.environ.get('userdomain') == "XXX":
	internal_proxy_address = "http://ZZZZ"
	os.environ["HTTP_PROXY"] = f"{internal_proxy_address}:999999"
	os.environ["HTTPS_PROXY"] = f"{internal_proxy_address}:999999"

compute_rhino3d.Util.apiKey = "ABCD"
compute_rhino3d.Util.url = "https://YYYY"	

def curve_fillet_points(curve0, curve1, radius, t0Base, t1Base, multiple=False):
    url = "/rhino/geometry/curve/getfilletpoints-curve_curve_double_double_double_double_double_plane"
    if multiple: url += "?multiple=true"
    args = [curve0, curve1, radius, t0Base, t1Base]
    if multiple: args = list(zip(curve0, curve1, radius, t0Base, t1Base))
    response = compute_rhino3d.Util.ComputeFetch(url, args)
    return response

pt0 = rhino3dm.Point3d(0,0,0)
pt1 = rhino3dm.Point3d(10,0,0)
pt2 = rhino3dm.Point3d(0,10,0)
l1 = rhino3dm.LineCurve(pt0, pt1)
l2 = rhino3dm.LineCurve(pt0, pt2)

rv = curve_fillet_points(l1, l2, 1.5, 0, 0)

print(rv)

I get the following result:

File "C:\Program Files\Python37\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Python37\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\Python37\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Is anyone able to run this piece of test code and post the results here? Will and I have been discussing it in github (link above) - it works for him, but not for me (or anyone else around me), no matter the server.

I’d love to know whether it’s not working because me, or is working because Will/McNeel. One or more third party results could help further narrow the cause.

import compute_rhino3d.Util
import rhino3dm
import os


compute_rhino3d.Util.apiKey = " xyz "
compute_rhino3d.Util.url = " abcd"	

def curve_fillet_points(curve0, curve1, radius, t0Base, t1Base, multiple=False):
	url = "/rhino/geometry/curve/getfilletpoints-curve_curve_double_double_double_double_double_plane"
	if multiple: url += "?multiple=true"
	args = [curve0, curve1, radius, t0Base, t1Base]
	if multiple: args = list(zip(curve0, curve1, radius, t0Base, t1Base))
	response = compute_rhino3d.Util.ComputeFetch(url, args)
	return response

pt0 = rhino3dm.Point3d(0,0,0)
pt1 = rhino3dm.Point3d(10,0,0)
pt2 = rhino3dm.Point3d(0,10,0)


l1 = rhino3dm.LineCurve(pt0, pt1)
l2 = rhino3dm.LineCurve(pt0, pt2)

rv = curve_fillet_points(l1, l2, 1.5, 0, 0)

print(rv)

A post was split to a new topic: JSONDecodeError: Expecting value: line 1 column 1 (char 0)