Added point/triangle function