https://github.com/ialhashim/topo-blend
Revision 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC, committed by ennetws on 13 March 2015, 18:17:18 UTC
1 parent c702819
Raw File
Tip revision: 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC
Create README.md
Tip revision: 39b1361
NurbsDraw.h
#pragma once

#include "NURBSCurve.h"
#include "NURBSRectangle.h"

typedef std::pair<Vector3,Vector3> PairVector3;
#define glVector3( v ) glVertex3d( v.x(), v.y(), v.z() )
#define glNormal3( v ) glNormal3d( v.x(), v.y(), v.z() )
#define glLine(v1,v2) glVector3(v1);glVector3(v2)

namespace NURBS
{
    class CurveDraw{
    public:
        static void draw( NURBSCurved * nc, QColor curve_color = QColor(0,255,255), bool drawControl = false, double scaling = 1.0);
    };

    class SurfaceDraw{
    public:
        static void draw( NURBSRectangled * nc, QColor sheet_color = QColor(0,255,255), bool drawControl = false, double scaling = 1.0, QColor wireframe_color = QColor(0,0,0));
    };
}
back to top