My Project
Macros | Functions
hiddenLines.cpp File Reference
#include "basicComponents.h"
#include "objLoader.h"
#include "figures.h"
#include "hiddenLines.h"
#include "helperfunctions.h"
#include <stdio.h>
#include <QtUiTools>
#include <iostream>
#include <vector>
#include <set>
#include <cmath>
Include dependency graph for hiddenLines.cpp:

Macros

#define INF   1000000
 
#define epsilon   0.1
 

Functions

bool opposite_side (vector< Vertice > &faceVertices, Vertice e, Vertice f)
 
Vertice back_proj (Vertice v, Edge e, int plane)
 
Vertice get_vertex_inf (Vertice x, int plane)
 
void render2DHidden (Fig3D &object3D, QPainter &painter, int plane, double scale_factor)
 Renders the figure and also marks lines as hidden where they are hidden by some plane. More...
 

Macro Definition Documentation

◆ epsilon

#define epsilon   0.1

◆ INF

#define INF   1000000

Function Documentation

◆ back_proj()

Vertice back_proj ( Vertice  v,
Edge  e,
int  plane 
)

returns 3D vertex on Edge e whose projection is v

◆ get_vertex_inf()

Vertice get_vertex_inf ( Vertice  x,
int  plane 
)

Returns Vertex at infinity for the corresponding projection plane (to check if a vertex and our view point lie on opposite side of a face)

◆ opposite_side()

bool opposite_side ( vector< Vertice > &  faceVertices,
Vertice  e,
Vertice  f 
)

returns true if a and b are on opposite side of plane formed by faceVertices , false otherwise

◆ render2DHidden()

void render2DHidden ( Fig3D object3D,
QPainter &  painter,
int  plane,
double  scale_factor 
)

Renders the figure and also marks lines as hidden where they are hidden by some plane.