PDA

View Full Version : I Need Easy Code Example About Clipping Line



e_xample2003
04-25-2003, 10:23 AM
Hi
I need easy code some example about clipping line (( Function ClipSegment )) on running windows by visual c++ as soon as .

Thanks

cass
04-25-2003, 11:16 AM
Originally posted by e_xample2003:
Hi
I need easy code some example about clipping line (( Function ClipSegment )) on running windows by visual c++ as soon as .

Thanks

Hi e_xample2003,

There's a simple segment clipper in my recent shadow volume demo, available at: http://developer.nvidia.com/view.asp?IO=shadow_volume_intersection

See the routine called clip_segments().
It's not the most efficient implementation in the world, but hopefully the code is reasonably clear.

Thanks,
Cass