}
//==================================================================================================
-BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
+BuildAPI_Interpolation::BuildAPI_Interpolation(
+ const FeaturePtr& theFeature,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
const ModelHighAPI_Selection& theStartTangent,
const ModelHighAPI_Selection& theEndTangent,
}
//==================================================================================================
-BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
+BuildAPI_Interpolation::BuildAPI_Interpolation(
+ const FeaturePtr& theFeature,
const std::list<ModelHighAPI_Selection>& theBaseObjects,
const bool theIsClosed,
const bool theIsToReorder)
}
}
+//==================================================================================================
BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
const std::string & theXTexpression,
const std::string & theYTexpression,
std::list<std::vector<double>> aCoordPoints;
for (int step = 0; step < aTable->rows(); step++) {
std::vector<double> aCoordPoint;
- ModelAPI_AttributeTables::Value value;
+ ModelAPI_AttributeTables::Value aValue;
//x
- value = aTable->value(step, 1);
- aCoordPoint.push_back(value.myDouble);
+ aValue = aTable->value(step, 1);
+ aCoordPoint.push_back(aValue.myDouble);
//y
- value = aTable->value(step, 2);
- aCoordPoint.push_back(value.myDouble);
+ aValue = aTable->value(step, 2);
+ aCoordPoint.push_back(aValue.myDouble);
//
- value = aTable->value(step, 3);
- aCoordPoint.push_back(value.myDouble);
+ aValue = aTable->value(step, 3);
+ aCoordPoint.push_back(aValue.myDouble);
aCoordPoints.push_back(aCoordPoint);
}
for (; anItCoordPoints!=aCoordPoints.end(); ++anItCoordPoints) {
- GeomVertexPtr aVertex =
- GeomAlgoAPI_PointBuilder::vertex((*anItCoordPoints)[0],
- (*anItCoordPoints)[1],
- (*anItCoordPoints)[2]);
+ GeomVertexPtr aVertex = GeomAlgoAPI_PointBuilder::vertex((*anItCoordPoints)[0],
+ (*anItCoordPoints)[1],
+ (*anItCoordPoints)[2]);
aPoints.push_back(aVertex->point());
}
/// Default value of the closed attribute
inline static bool CLOSED_DEFAULT() { return false; }
- /// list of references to the arguments of this expression
+ /// list of references to the arguments of this expression
inline static const std::string& ARGUMENTS_ID()
{
static const std::string MY_ARGUMENTS_ID("arguments");
</message>
</context>
<context>
- <name>Interpolation:analytical</name>
- <message>
- <source>Curves parameters</source>
- <translation>Paramètres de la courbe</translation>
- </message>
- <message>
- <source>X(t) equation</source>
- <translation>Équation X(t)</translation>
- </message>
- <message>
- <source>Y(t) equation</source>
- <translation>Équation Y(t)</translation>
- </message>
- <message>
- <source>Z(t) equation</source>
- <translation>Équation Z(t)</translation>
- </message>
- <message>
- <source>Number of steps</source>
- <translation>Nombre de pas</translation>
- </message>
+ <name>Interpolation</name>
+ <message>
+ <source>Curves parameters</source>
+ <translation>Paramètres de la courbe</translation>
+ </message>
+ </context>
+ <context>
+ <name>Interpolation:xt</name>
+ <message>
+ <source>X(t) equation</source>
+ <translation>Équation X(t)</translation>
+ </message>
+ </context>
+ <context>
+ <name>Interpolation:yt</name>
+ <message>
+ <source>Y(t) equation</source>
+ <translation>Équation Y(t)</translation>
+ </message>
+ </context>
+ <context>
+ <name>Interpolation:zt</name>
+ <message>
+ <source>Z(t) equation</source>
+ <translation>Équation Z(t)</translation>
+ </message>
+ </context>
+ <context>
+ <name>Interpolation:numstep</name>
+ <message>
+ <source>Number of steps</source>
+ <translation>Nombre de pas</translation>
+ </message>
</context>
<context>
<name>Polyline:base_objects</name>
The property panel is shown below.
-.. figure:: images/InterpolationAnalitycal.png
+.. figure:: images/InterpolationAnalytical.png
:align: center
Create an interpolation analytical
The result of the operation will be a curve created from analytical expressions for x,y and z as functions of variable t:
-.. figure:: images/CreateInterpolationAnalitycal.png
+.. figure:: images/CreateInterpolationAnalytical.png
:align: center
Result of the operation.
<box id="analytical"
title="Curve analytical"
icon="icons/Build/feature_interpolation_analytical.png">
- <groupbox title="Curves parameters">
+ <groupbox id="curves_parameters" title="Curves parameters">
<stringvalue id="xt" label="X(t) equation">
<validator id="BuildPlugin_ValidatorExpressionInterpolation"/>
</stringvalue>