[Cam] fix warning
removed unused variables
This commit is contained in:
@@ -90,10 +90,10 @@ void EndMill::GenerateDisplayLists(float quality)
|
||||
}
|
||||
|
||||
// full tool
|
||||
toolShape.RotateProfile(profilePoints, nPoints, 0, 0, nslices, false);
|
||||
toolShape.RotateProfile(profilePoints, nPoints, 0, nslices, false);
|
||||
|
||||
// half tool
|
||||
halfToolShape.RotateProfile(profilePoints, nPoints, 0, 0, nslices / 2, true);
|
||||
halfToolShape.RotateProfile(profilePoints, nPoints, 0, nslices / 2, true);
|
||||
|
||||
// unit path
|
||||
int nFullPoints = PROFILE_BUFFER_POINTS(nPoints);
|
||||
|
||||
@@ -33,11 +33,6 @@ using namespace MillSim;
|
||||
static float* sinTable = nullptr;
|
||||
static float* cosTable = nullptr;
|
||||
static int lastNumSlices = 0;
|
||||
static int lastNumSectionIndices = 0;
|
||||
static GLshort quadIndices[] = { 0, 2, 3, 0, 3, 1 };
|
||||
static GLshort quadIndicesReversed[] = { 0, 3, 2, 0, 1, 3 };
|
||||
static GLshort* sectionIndicesQuad = nullptr;
|
||||
static GLshort* sectionIndicesTri = nullptr;
|
||||
|
||||
static bool GenerateSinTable(int nSlices)
|
||||
{
|
||||
@@ -71,7 +66,7 @@ static bool GenerateSinTable(int nSlices)
|
||||
}
|
||||
|
||||
|
||||
void MillSim::Shape::RotateProfile(float* profPoints, int nPoints, float distance, float deltaHeight, int nSlices, bool isHalfTurn)
|
||||
void MillSim::Shape::RotateProfile(float* profPoints, int nPoints, float distance, int nSlices, bool isHalfTurn)
|
||||
{
|
||||
int vidx = 0;
|
||||
int iidx = 0;
|
||||
|
||||
@@ -37,9 +37,6 @@
|
||||
var[idx++] = z; \
|
||||
}
|
||||
|
||||
// #define SET_TRIPLE(var, idx, x, y, z) {var[idx] = x; var[idx+1] = y; var[idx+2] = z;}
|
||||
// #define SET_TRIPLE_OFFS(var, idx, offs, x, y, z) {var[idx] = x + offs; var[idx+1] = y + offs;
|
||||
// var[idx+2] = z + offs;}
|
||||
|
||||
#define SET_TRIPLE_OFFS(var, idx, offs, x, y, z) \
|
||||
{ \
|
||||
@@ -78,7 +75,6 @@ public:
|
||||
void RotateProfile(float* profPoints,
|
||||
int nPoints,
|
||||
float distance,
|
||||
float deltaHeight,
|
||||
int nSlices,
|
||||
bool isHalfTurn);
|
||||
void ExtrudeProfileRadial(float* profPoints,
|
||||
|
||||
Reference in New Issue
Block a user