|
楼主 |
发表于 2008-8-4 12:27:47
|
显示全部楼层
回复: PR 238513 Dimension Polar Radius only plots in zplus plane
if (pa_loc || pr_loc)
{ // Draw the polar angle and radius zones
origin[2] = theopointpart[2]; // project this to the current measpoint[2]
if (m_bUseAlign)
{
go_mm3(theopointpart, theopointpart, m_Workplane); // PR238513
origin = theopointpart; // PR238513
origin[0] = 0.0; // PR238513
origin[1] = 0.0; // PR238513
out_mm3(origin, origin, m_Workplane); // PR238513
m_Alignment.aaback(ROTANDTRANS, origin, origin, ZPAXIS);
out_mm3(zaxis, zaxis, m_Workplane); // PR238513
}
if (m_bShowAllDimsTolLines && pr_loc) // PR250544
{
DimDrawCircle(&DC, origin, zaxis, 2. * (npr + ptpr * arrow_mult), 0., 360.);
if( (npr - mtpr * arrow_mult) > 0.0 ) // PR250544
DimDrawCircle(&DC, origin, zaxis, 2. * (npr - mtpr * arrow_mult), 0., 360.);
}
temp_point[0] = npr;
temp_point[1] = npa + ptpa * arrow_mult;
temp_point[2] = theopointpart[2];
out_polar(temp_point, temp_point, m_Workplane, bUseDmisPolarConvention); // PR228181
if (m_bUseAlign)
m_Alignment.aaback(ROTANDTRANS, temp_point, temp_point, ZPAXIS);
if (m_bShowAllDimsTolLines && pa_loc) // PR250544
{
DimDrawLine(&DL, origin, temp_point);
}
temp_point[0] = npr;
temp_point[1] = npa - mtpa * arrow_mult;
temp_point[2] = theopointpart[2];
out_polar(temp_point, temp_point, m_Workplane, bUseDmisPolarConvention); // PR228181
if (m_bUseAlign)
m_Alignment.aaback(ROTANDTRANS, temp_point, temp_point, ZPAXIS);
if (m_bShowAllDimsTolLines && pa_loc) // PR250544
{
DimDrawLine(&DL, origin, temp_point);
}
temp_point[0] = mpr;
temp_point[1] = mpa;
temp_point[2] = theopointpart[2]; // keep this in the same plane as the other lines.
out_polar(temp_point, temp_point, m_Workplane, bUseDmisPolarConvention); // PR228181
if (m_bUseAlign)
m_Alignment.aaback(ROTANDTRANS, temp_point, temp_point, ZPAXIS);
DL.Color = get_dimension_color((mpa - npa), ptpa, mtpa);
if (m_bShowAllDimsMeasured && pa_loc) // PR250544
{
DimDrawLine(&DL, origin, temp_point);
}
DC.Color = get_dimension_color((mpr - npr), ptpr, mtpr);
if (m_bShowAllDimsMeasured && pr_loc) // PR250544
{
DimDrawCircle(&DC, origin, zaxis, 2. *mpr, 0., 360.);
}
return;
}
|
|