Sign in to follow this  

Discarding one dimension of a face and compare with the ground

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have discarded the y dimension of the face of a mesh.

quad::vec2 triangle[3];

triangle[0].x = triangle1[0].x
triangle[0].y = triangle1[0].z
triangle[1].x = triangle1[1].x
triangle[1].y = triangle1[1].z
triangle[2].x = triangle1[2].x
triangle[2].y = triangle1[2].z

// Compare extents between this triangle and the ground

Here I don't want to iterate the triangles/poly of the ground because it will be too expensive.

I'd like to use some math to compare the extents between the ground and the projected face.

What is the best way to do it?

Thanks

Jack

 

 

 

Share this post


Link to post
Share on other sites

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

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this