Meshing a torus

Coreform Cubit Version: 2025.8
Platform: Linux debian 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64 GNU/Linux

Issue
Hello,

I am trying to follow this video tutorial:

However, at the first step “Import or create geometry” I do not import the cube with a hole. Instead, I just create a new torus by pressing “Build my own geometry” and then “Create primitives”. The meshing fails, see the attachment. The geometry verification step seems to be ok. The good news is – the same wizard steps work if I choose a sphere instead of a torus.

What can we help with?
Could you please help me to mesh a torus?

Kind regards,

Siarhei

Hi @cembooks,
as the torus forms a closed loop and doesn’t even provide a cross section, cubit can’t find a sweep direction.

Easiest way to get it meshed, is to cut the torus in half and then do a imprint and merge. Now you have a cross section that can be used to sweep.

#!cubit
reset
create torus major radius 1 minor radius 0.1
webcut volume all with plane yplane offset 0
imprint vol all
merge vol all
mesh vol all

Thanks! This solves the problem.