Getting set up on Ubuntu 22.04 (Jammy Jellyfish)

27 views
Skip to first unread message

Llion Marc Evans

unread,
Sep 14, 2022, 7:01:49 PM9/14/22
to iso2mesh-users
Dear Qianqian,

When I last set up iso2mesh it was on ubuntu18. I'm now trying to do this on ubuntu22 and it seems things might be a little different.

After doing 'sudo apt install octave-iso2mesh' I see that the .m files are all under '/usr/share/octave/packages/iso2mesh-1.9.6', I'm guessing this is what should be added to my path within octave but I cannot see where the 'bin' directory is to add to my system path (do I still need to do this step?). Additionally, I cannot see where the tutorial scripts and data are stored.

I've tried looking for updated instructions, apologies if I've missed these.

Thanks in advance for your guidance.

Kind regards,
Llion

Llion Marc Evans

unread,
Sep 15, 2022, 8:16:25 AM9/15/22
to iso2mesh-users
Ah, I see that iso2mesh-tools gets installed into /usr/bin so that should mean that they're already picked up by $PATH.

So, can I please check:
1. Should '/usr/share/octave/packages/iso2mesh-1.9.6' be added to my octave path or loaded as a package (or is this done automatically)
2. Do I need to download the tutorial files separately?

Thanks,
Llion

Qianqian Fang

unread,
Sep 15, 2022, 8:46:34 AM9/15/22
to iso2mes...@googlegroups.com, Llion Marc Evans

hi Llion,

octave-iso2mesh can be installed via apt-get on Debian (11 or newer) or Ubuntu 21.04 or newer, as you did.

it is  installed as an Octave package and managed by the pkg command.

after installation, when you start octave, and type

pkg list

command, you should see iso2mesh and it's dependencies - this is what you are expected to see

octave:1> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
    iso2mesh  |   1.9.6 | /usr/share/octave/packages/iso2mesh-1.9.6
      jnifti  |   0.6.1 | /usr/share/octave/packages/jnifti-0.6.1
     jsonlab  |     2.0 | /usr/share/octave/packages/jsonlab-2.0

to use iso2mesh, you need to run


pkg load iso2mesh
which s2m


this will add its path. all meshing utilities originally in iso2mesh/bin are packaged under a dependency called iso2mesh-tools

https://salsa.debian.org/pkg-octave-team/octave-iso2mesh/-/blob/debian/latest/debian/control#L60

and they are installed under /usr/bin. for example, /usr/bin/cgalmesh, /usr/bin/cgalsurf etc.


not all iso2mesh/bin utilities have been packaged - cork is not packaged due to its usage of triangle.c which has a non-free license. as a result, the surfboolean function may not work. I am still working on replacing triangle.c by an open-source alternative.


Qianqian

--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iso2mesh-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iso2mesh-users/fa1aa3f8-49ab-44bc-87cf-9c5f0af75f29n%40googlegroups.com.

Llion Marc Evans

unread,
Sep 15, 2022, 8:52:23 AM9/15/22
to iso2mesh-users
Thanks for the quick response.

Great. So if I add 'pkg load iso2mesh' to my octaverc file (like I've done for the image package) it should all be set up to use as soon as octave opens.

What about the tutorial files?

Cheers,
Llion

Qianqian Fang

unread,
Sep 15, 2022, 9:03:19 AM9/15/22
to iso2mes...@googlegroups.com, Llion Marc Evans

tutorials are packaged under a separate package - iso2mesh-demos

https://packages.debian.org/unstable/iso2mesh-demos

you can install and see the paths of the files

sudo apt-get install iso2mesh-demos
dpkg -L iso2mesh-demos

Llion Marc Evans

unread,
Sep 15, 2022, 10:40:10 AM9/15/22
to iso2mesh-users
Ah, perfect. I hadn't spotted that. Much appreciated.
Llion

Reply all
Reply to author
Forward
0 new messages