1
$\begingroup$

I want to model a torus with grid, i.e torus code in topology quantum computation, just like followin, but I do not know how to draw grid.

Maybe using texture might be helpful, but are there any other ways?

torus code

$\endgroup$
2
0
$\begingroup$

Did you try using a wireframe node or modifier. You may be able to duplicate the torus and then apply the wireframe to the outer torus if you want it to look more 3D. But you can also try the wireframe node.

$\endgroup$
1
  • $\begingroup$ thanks very much, problem solved $\endgroup$ – Benjamin Jiang Jan 10 at 5:41
0
$\begingroup$

You can unwrap the UVs for the torus

See: How can I mark the seams to UV unwrap a torus?

Then use the UV mapping on a brick texture with no offset, and a frequency of 1. The fac output you can use to control a color mix used as color on the material.

enter image description here

Or you can Export the UV layout.

enter image description here

You'll get an image like this saved on a file, where each of the vertices on the mesh is represented by a line and the faces are the alpha channel:

enter image description here

Then use that image to control the mix of whatever colors you want.

enter image description here

(the color ramp is there to make the alpha channel more contrasted, only pure black and pure white)

$\endgroup$
1
  • $\begingroup$ thanks, this seems a nice way $\endgroup$ – Benjamin Jiang Jan 10 at 5:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.