/*!
    \fn Processor::CalculateEverythingFor(int rank)
 */
void Processor::CalculateEverythingFor(int rank, int persistence)
{
        double real_alpha;
        if(alcx->MaximumRank!=0)
        {
                alcx->BuildComplex(rank,vertexList);
                real_alpha = alcx->AlphaThresholdSqr(rank);
                if(rank!=0)
                {
                        alcx->Adjust(real_alpha,vertexList);
                }
                if(rank != 0 && rank != alcx->MaximumRank)
                {
                        pocket->FindPockets(alcx->delcx,alcx->sortedTet);
                        pocket->MeasurePockets(alcx->delcx,vertexList);
                        //pocket->PocketProperties (alcx->delcx,vertexList,rank);
                        std::vector<std::vector<int> > pockets = pocket->GetPockets();
                        mouth->FindMouths(pockets,alcx->delcx);
                        mouth->MeasureMouths(alcx->delcx,vertexList);
                        volume->MeasureVolume(alcx->delcx,vertexList,totVol,totSurf,0);
                        //volume->MeasureVolume(alcx,vertexList,totVol,totSurf,0);
                        MapPocketsToMouths();
                        FillTables();
                        pspin->setRange(1,pockets.size());
                }
        }
}
Exemple #2
0
static void CreatDrillTable(const CString& type, const CString& func, const AcDbObjectId& objId)
{
	AcStringArray fields,datas;
	if(!GetFieldsDatas(type,func,objId,fields,datas)) return;

	int rows = fields.length() + 1;
	if(rows <= 0) return;
	//写表头
	MyWord->CreateTable(rows,2);
	MyWord->SetTableText(1,1,_T("参数"),10,0);
	MyWord->SetTableText(1,2,_T("数值"));

	for (int k = 0; k < fields.length(); k++)
	{
		FillTables(k,type,fields[k].kACharPtr(),datas[k].kACharPtr());
	}
}
/*!
    \fn Processor::CalculateVolumes(int rank)
 */
void Processor::CalculateVolumes(int rank, int persistence)
{
        //double real_alpha;
        if(alcx->MaximumRank!=0)
        {
                if(rank != 0 && rank != alcx->MaximumRank)
                {
                        pocket->MeasurePockets(alcx->delcx,vertexList);
                        //pocket->PocketProperties (alcx->delcx,vertexList,rank);
                        mouth->MeasureMouths(alcx->delcx,vertexList);
                        volume->MeasureVolume(alcx->delcx,vertexList,totVol,totSurf,0);
                        //volume->MeasureVolume (alcx,vertexList,totVol,totSurf,0,rank);
                        //volume->FindVolume (alcx,vertexList,totVol,totSurf,0,rank);
                        //alcx->FindProperties (vertexList,totVol,totSurf,rank);
                        FillTables();
                }
        }

}
Exemple #4
0
SynthLibInit::SynthLibInit()
{
	FillTables();
}
GCodeInterpreter::GCodeInterpreter(void): output(0), workingPlane(XY), lastMovementFunction(-1)
{
	FillTables();
	for(char u = 'A'; u != 'Z'+1; u++)
		lastValue[u] = 0;
}
Exemple #6
0
AudioLibInit::AudioLibInit()
{
	FillTables();
}