PartDesign module moving float -> double
This commit is contained in:
@@ -65,7 +65,7 @@ short PolarPattern::mustExecute() const
|
||||
|
||||
const std::list<gp_Trsf> PolarPattern::getTransformations(const std::vector<App::DocumentObject*>)
|
||||
{
|
||||
float angle = Angle.getValue();
|
||||
double angle = Angle.getValue();
|
||||
if (angle < Precision::Confusion())
|
||||
throw Base::Exception("Pattern angle too small");
|
||||
int occurrences = Occurrences.getValue();
|
||||
@@ -105,7 +105,7 @@ const std::list<gp_Trsf> PolarPattern::getTransformations(const std::vector<App:
|
||||
axis = refSketch->getAxis(AxId);
|
||||
}
|
||||
axis *= refSketch->Placement.getValue();
|
||||
axbase = gp_Pnt(axis.getBase().x, axis.getBase().y, axis.getBase().z);
|
||||
axbase = gp_Pnt(axis.getBase().x, axis.getBase().y, axis.getBase().z);
|
||||
axdir = gp_Dir(axis.getDirection().x, axis.getDirection().y, axis.getDirection().z);
|
||||
} else {
|
||||
Part::Feature* refFeature = static_cast<Part::Feature*>(refObject);
|
||||
|
||||
Reference in New Issue
Block a user