7 std::unique_ptr<Odb::Lib::Protobuf::ContourPolygon> pContourPolygonMessage(
new Odb::Lib::Protobuf::ContourPolygon);
8 pContourPolygonMessage->set_type((Odb::Lib::Protobuf::ContourPolygon::Type)
type);
9 pContourPolygonMessage->set_xstart(
xStart);
10 pContourPolygonMessage->set_ystart(
yStart);
13 pContourPolygonMessage->add_polygonparts()->CopyFrom(*pPolygonPart->to_protobuf());
15 return pContourPolygonMessage;
34 std::unique_ptr<Odb::Lib::Protobuf::ContourPolygon::PolygonPart> pPolygonPartMessage(
new Odb::Lib::Protobuf::ContourPolygon::PolygonPart);
35 pPolygonPartMessage->set_endx(
endX);
36 pPolygonPartMessage->set_endy(
endY);
37 pPolygonPartMessage->set_xcenter(
xCenter);
38 pPolygonPartMessage->set_ycenter(
yCenter);
40 pPolygonPartMessage->set_type(
static_cast<Odb::Lib::Protobuf::ContourPolygon::PolygonPart::Type
>(
type));
41 return pPolygonPartMessage;