Google Classroom
GeoGebraGeoGebra Classroom

First Order Bezier Triangle

Description

Bezier Surfaces are often used in computational geometry to represent surfaces. It is often useful to represent a surface as a connected set of triangles. Sometimes a triangle is calculated as a rectangle with a collapsed side. This can lead to extreme oscillations in the surface near the collapsed side. An alternative is Barycentric coordinates. This system is built up where each point inside the triangle is made up of a weighted sum of the coordinates of the vertices. Since there are three vertices and a surface has only two degrees of freedom one of the weights must be related to the other two weights. In this applet 's' is 1 at the vertex P100 and zero along the opposite side. 't' is one at the P010 vertex and zero along the opposite side. 'u' would be one at the P001 vertex and zero on the opposite edge. The interior point 'A' is the weighted sum of the vertex coordinates . The extra constraints are that for 'A' to be inside the triangle and all three parameters are between zero and one. In this applet these result in the ranges and with . The alternative rectangle with u v parameters is that one parameter on the collapsed edge could vary without moving the resulting surface point.

Activities

The main thing with this applet is to get used to Baycentric Coordinates. Move the control nodes (knots) and the parameter 's' and 't' sliders and see how the triangle and weighted point 'A' change. This is important for going to higher order curved triangular surfaces.