Questions about solid circle
Posted: 14 Oct 2011, 00:04
Hi,
First question :
I draw my solid circle like that :
Is it the best method ?
Second question : is it possible to change solid circle radius and position (not move with mouse) on runtime ?
TIA,
Engi
First question :
I draw my solid circle like that :
Code: Select all
TsgCADCurvePolygon *vSolidCircle = new TsgCADCurvePolygon;
Tsg2DBoundaryList *v2DBList = new Tsg2DBoundaryList;
((TsgCADHatch *)vSolidCircle)->BoundaryData->Add(v2DBList);
Tsg2DArc *v2DArc = new Tsg2DArc;
v2DBList->Add(v2DArc);
v2DArc->CenterPoint = MakeF2DPoint(CentreCercle.X, CentreCercle.Y);
v2DArc->Radius = 300;
v2DArc->CounterClockWise = true;
v2DArc->StartParam = 0.0;
v2DArc->EndParam = 360.0;
TsgDXFEntity *FEnt = vSolidCircle;
if (FEnt != NULL)
{
FEnt->Layer = img->Converter->LayerByName(D900_LAYER);
AddEntity(img->Converter, FEnt);
img->GetExtents();
}
Second question : is it possible to change solid circle radius and position (not move with mouse) on runtime ?
TIA,
Engi