Snippets in category Graphics and 3D
Form changing color
Windows Forms tutorial showing how to create form with button and how to register an event handler. When the button is clicked, the form changes its background color.
29 people like this
Posted: 1 years ago by Tomas PetricekTriple (3D Vector)
This class is a 3D vector representation. There is a module called Triple with operations on the triple type.
17 people like this
Posted: 1 years ago by Oldrich SvecDistance between two 3D segments
The function segmentSegment takes 2 segments (starting and ending points) and computes the shortest distance between them. The function returns a starting and ending point of the shortest segment between the two segments. The function uses a triple type but can be easily rewritten to work with any other type (vector etc).
23 people like this
Posted: 1 years ago by Oldrich SvecClosest Pair of Points
Closest Pair of points problem in the planar case.
22 people like this
Posted: 1 years ago by Martin Szarski
Graham scal algorithm for finding the convex hull of a sequence of 2D points
finds the points lying on the convex hull of the given set of points and returns those points in clockwise direction, starting at the point with minimum y-value Remarks: it's a more or less direct implementation of the algorithm named after Ronald Graham that is explained on http://en.wikipedia.org/wiki/Graham_scan you can switch the definition Point for a proper type of your liking - e.g. System.Drawing.Point
30 people like this
Posted: 1 years ago by Carsten KönigSierpinski triangle, WPF
Draws a Sierpinski triangle using WPF
8 people like this
Posted: 2 months ago by Mathias BrandewinderMonotone Chain Convex Hull Algorithm
Andrew's Monotone Chain Convex Hull algorithm: given points in 2 dimensions, determine their convex hull by constructing the upper and lower hull.
3 people like this
Posted: 1 months ago by Mathias Brandewinder