# Drawing a cricle on the plane

This topic is 1520 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

SOLVED        SOLVED        SOLVED      SOLVED

So i have a plane that has a normal n and distance d (normal normalzied)

i want to draw a circle on it (set some vertices there on the surface)

my code looks like this:

determine what direction face (plane) is facing (x or y or z)

go through a loop

if (ShockSurfH.algined == 2) { //Y algin so XZ calculus
t1.y = 0;

t2.y = 0;

t3.y = 0;

t4.y = 0;

}

shockwaveH[i*4+0] = pos+ ( nH * (t1*nH));
shockwaveH[i*4+1] = pos+ ( nH * (t2*nH));
shockwaveH[i*4+2] = pos+ ( nH * (t3*nH));
shockwaveH[i*4+3] = pos+ ( nH * (t4*nH));

i set circle verts on the 'axis' and then project it onto the plane (the 2nd code) however the bigger slope of the plane circle starts to look like an ellipse.

How to draw a normal circle?

Edited by WiredCat

##### Share on other sites
Closing, since it's solved.

##### Share on other sites

This topic is 1520 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

This topic is now closed to further replies.

1. 1
2. 2
3. 3
Rutin
15
4. 4
khawk
13
5. 5
frob
12

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633663
• Total Posts
3013236
×