Hey Jelle! Thanks for the reply. Goddamn, how did I not see the tolerance argument in the call? Still not used to the very long (C-related) arguments in the call, especially with more than one word per argument. Anyway, there's nothing to change that, apart from learning and getting used to it more.. Mmh, for the error msg, you're right, it was totally misleading that it told me about how to handle a gp_Torus, that put me on the wrong track. For a better msg.. not sure how this works together with the other, misinforming msg, but first thing I checked was the type of my argument (it was no gp_Torus), so including that would help. Maybe it's then possible to pass on the type-relevant lines of the docstring of BRepBuilderAPI_MakeFace.__init__ (and check for number of arguments..)? The docstring is like a mile long, guess that is why I kept not seeing my mistake. I am not sure, how much sense that makes, there's no standard for pythonOCC error msgs yet, is there? Btw I'd be happy to contribute, some time on my hands and rainclouds in the sky..
Greetz Nina From: jelleferi...@gmail.com Date: Thu, 18 Jul 2013 10:57:32 +0200 To: pythonocc-users@gna.org Subject: Re: [Pythonocc-users] surface from point cloud Ah, I've been bitten by this one myself.The call that make_face wraps has changed, and the resulting error msg is seriously misinforming. BRepBuilderAPI_MakeFace (const Handle< Geom_Surface > &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen) Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges. My bet is that you've missed the tolerance argument. I'm happy to take suggestions on how to provide a better error message…I guess doing so by filtering the arguments provided to make_face… -jelle On Jul 17, 2013, at 1:16 AM, Nina Schultz <nina.a.schu...@hotmail.de> wrote:Uwe Schlifkowitz <schlifkowitz@...> writes: Hello, I want to make a surface from a point cloud. A minimal example (adapted from the geomplate example) can be found at http://pastebin.com/dxu2kLSv Basically I have an unordered list of points and want to create a face from this list. The points form a surface (original data is from a Nastran BDF file) and do not necessarily lie in the xy plane. From what I read in the docs, this should be possible with the example code. However, this results in the following error: TypeError: in method 'new_BRepBuilderAPI_MakeFace', argument 1 of type 'gp_Torus const' What/Why is this? The full error message is at http://pastebin.com/kufpJYf5 Best regards, Uwe Hey Uwe, hey all! I am also interested in an answer, stuck at the same point. I yet have to fully learn C so I keep having trouble with the types of the inputs. But I thought the BRepBuilderAPI_MakeFace can take a gp_Torus? So why the error? Mmh. Best regards, Nina _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users