Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I try to project a string over a plane some symbols like "O" are filled

import three;
path[] Oletter=texpath("O");
path3 Oletter3D = path3(Oletter[0],XYplane);
draw(surface(Oletter3D));

How can I do?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The label command is available in 3D as well:

import three;
size3(5cm);
label(XY()*"O",(0,0,0));

In your code you only use the outer curve of the symbol and it gets filled. An alternative is

import three;
surface s = surface(texpath("O"));
size3(5cm);
draw(s,blue);
share|improve this answer
    
thanks a lot, now works fine –  Phraellyn Dec 26 '11 at 9:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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