void ConstructionAPI_Point::setByProjectionOnEdge(const ModelHighAPI_Selection& theVertex,
const ModelHighAPI_Selection& theEdge)
{
- fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION_ON_EDGE(),
+ fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION(),
mycreationMethod);
- fillAttribute(theVertex, mypoinToProjectOnEdge);
+ fillAttribute(ConstructionPlugin_Point::PROJECTION_TYPE_ON_EDGE(),
+ myprojectionType);
+ fillAttribute(theVertex, mypoinToProject);
fillAttribute(theEdge, myedgeForPointProjection);
execute();
void ConstructionAPI_Point::setByProjectionOnFace(const ModelHighAPI_Selection& theVertex,
const ModelHighAPI_Selection& theFace)
{
- fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION_ON_FACE(),
+ fillAttribute(ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION(),
mycreationMethod);
- fillAttribute(theVertex, mypoinToProjectOnFace);
+ fillAttribute(ConstructionPlugin_Point::PROJECTION_TYPE_ON_FACE(),
+ myprojectionType);
+ fillAttribute(theVertex, mypoinToProject);
fillAttribute(theFace, myfaceForPointProjection);
execute();
theDumper << ratio() << ", " << true;
}
theDumper << ", " << reverse()->value();
- } else if (aMeth == ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION_ON_EDGE()) {
- theDumper << mypoinToProjectOnEdge << ", " << myedgeForPointProjection;
- } else if (aMeth == ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION_ON_FACE()) {
- theDumper << mypoinToProjectOnFace << ", " << myfaceForPointProjection;
+ } else if (aMeth == ConstructionPlugin_Point::CREATION_METHOD_BY_PROJECTION()) {
+ theDumper << mypoinToProject << ", ";
+ if (projectionType()->value() == ConstructionPlugin_Point::PROJECTION_TYPE_ON_EDGE()) {
+ theDumper << myedgeForPointProjection;
+ } else {
+ theDumper << myfaceForPointProjection;
+ }
}
theDumper << ")" << std::endl;