Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different shapes #5

Open
albertpak opened this issue Jul 24, 2014 · 1 comment
Open

Different shapes #5

albertpak opened this issue Jul 24, 2014 · 1 comment

Comments

@albertpak
Copy link

Is there a way to modify it to create different shapes other than triangles?

Or where can I start to look into using different shapes other than triangles?

Thank you in advance.

@SaekiRaku
Copy link

Look into the examples folder, you will see the code that display squared shapes with static triangles.

Notice this:

var geometry = new FSS.Plane(600, 400, 6, 4);

Then, use

console.log(geometry);

to see what is inside it.
After that, you will find out "triangles" is inside it.
Continue...

At last you will get:

geometry > triangles > a or b or c > Vertex

So,you can use

geometry.triangles[0].a = new FSS.Vertex(Somenumber,Somenumber,Somenumber);
geometry.triangles[0].b = new FSS.Vertex(Somenumber,Somenumber,Somenumber);
geometry.triangles[0].c = new FSS.Vertex(Somenumber,Somenumber,Somenumber);

to change the position of a point.
show

I'm not very skilled of this, I was found out that just now. And my English is not good, hope you can get what I mean.

well,I did some trial.Although it's not very good,but at least it's work.
20151105171651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants