Some of the sample programs display a blank screen

38 views
Skip to first unread message

Richard Fuhr

unread,
Feb 18, 2024, 8:57:23 PM2/18/24
to NURBS-Python
Some of the sample programs in NURBS-Python display a blank screen (but no error message).

For example (see attached files)
python3 visualization-1.py yields a display of the curve and its control polygon
python3 visualization-2.py yields a blank screen.

I am very new to NURBS-Python and have just started trying it out today.

I have access to the source code via
~/.local/lib/python3.12/site-packages/geomdl

so if I need to make any changes there that would enable some of the visualization to work, please let me know.
visualization-2.py
visualization-1.py

Richard Fuhr

unread,
Feb 19, 2024, 1:07:46 AM2/19/24
to NURBS-Python
In my copy of the source code for geomdl I replaced np.float with float where appropriate in the visualization module, so that the code would run.

Richard Fuhr

unread,
Feb 19, 2024, 4:23:58 PM2/19/24
to NURBS-Python
I should point out that replacing np.float with float enabled the code to run without error messages, but I get a blank screen when invoking
python3 visualization-2.py 

Does anyone know why this is, and what code would need to be changed?

Onur Bingol

unread,
Feb 19, 2024, 11:42:38 PM2/19/24
to nurbs-python
The code in this branch should fix the issues: https://github.com/orbingol/NURBS-Python/tree/feature/vis-fix

How to use the code in the "feature/vis-fix" branch (please remove the quotes before copy-paste)

1. Uninstall the existing geomdl package: "pip3 uninstall geomdl" or "pip uninstall geomdl"
2. git-clone the repository: "git clone https://github.com/orbingol/NURBS-Python.git"
3. Switch to "feature/vis-fix" branch: "git checkout feature/vis-fix"
4. Install geomdl using this command: "pip3 install -e ." or "pip install -e ."

I will need to work on some other minor updates before the release, I'd appreciate if you could use the above method to install geomdl temporarily.

-Onur


---- On Mon, 19 Feb 2024 13:23:58 -0800 Richard Fuhr <richar...@gmail.com> wrote ---

--
You received this message because you are subscribed to the Google Groups "NURBS-Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nurbs-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nurbs-python/1ada5a3a-4d9c-4269-9926-fb21d31099adn%40googlegroups.com.


Richard Fuhr

unread,
Feb 20, 2024, 12:32:36 AM2/20/24
to NURBS-Python
Thank you.  The four steps given by Onur Bingol above (to use the feature/vis-fix branch), worked quite nicely, and enabled me to run the test code successfully!

JBo

unread,
Jul 7, 2024, 9:08:49 AM7/7/24
to NURBS-Python
Hi all

NURBS-Python newbie here ...

I am getting started with bezier examples
I get blank figures with both :
  • ex_bezier_curve3d.py
  • ex_bezier_surface.py
despite using the above method.
( win11x64 , pycharm, Python 3.12)

Can you please help me through this first step ?

Regards

Julien

Onur R. Bingol

unread,
Jul 8, 2024, 10:33:02 AM7/8/24
to nurbs-...@googlegroups.com
Hello Julien,

Please use a different python and/or matplotlib version to see if you can replicate the issue.

Best,
Onur




---- On Sun, 07 Jul 2024 06:08:49 -0700 jbocr...@gmail.com wrote ----

JBo

unread,
Jul 8, 2024, 4:52:13 PM7/8/24
to NURBS-Python
At least on colab
I can't tell why
Reply all
Reply to author
Forward
0 new messages