Jump to content

View more

Image of the Day

Working on Johnny Bonasera Chapter 2 Intro. #screenshotsaturday #adventuregame https://t.co/QWEx05T09z
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

How to move a vertex along an edge to an arbitrary location?

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 lucky6969b   Members   

1258
Like
0Likes
Like

Posted 21 December 2012 - 04:03 AM

I want to slide it down a bit to 50% 60% 70% perhaps, what is the math behind?

Thanks

Jack



#2 eppo   Members   

4660
Like
0Likes
Like

Posted 21 December 2012 - 04:09 AM

To slide one of an edge's vertices along the edge: edge.vertex1.position += (edge.vertex2.position - edge.vertex1.position) * 0.5;

#3 lucky6969b   Members   

1258
Like
0Likes
Like

Posted 21 December 2012 - 04:21 AM

Thanks. BTW, are there any good book recommendation for mesh manipulations, such as degenerate face elimination?

Just all about meshes/patches/nurbs... etc

Thanks

Jack



#4 eppo   Members   

4660
Like
0Likes
Like

Posted 21 December 2012 - 07:21 AM

I only know the book 'Real-time Collision Detection' has a chapter on geometric robustness, but most of what can be found in books is likely to be available in online papers as well.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.