45 out <<
"Polygon, " <<
NofVertices() <<
" vertices:" << std::endl;
47 out <<
" (" <<
Vertex(i).first <<
", " <<
Vertex(i).second <<
")";
49 out <<
" mm" << std::endl;
51 out <<
"Planes:" << std::endl;
54 <<
" x0 = " <<
Offset(i).first <<
" mm "
55 <<
" y0 = " <<
Offset(i).second <<
" mm "
56 <<
" scale= " <<
Scale(i) << std::endl;
std::ostream & operator<<(std::ostream &out, const VGM::IExtrudedSolid &xtru)
virtual std::ostream & Put(std::ostream &out) const
Put the printing of the solid parameters in the out stream.
virtual ~VExtrudedSolid()
The VGM interface to extruded solids.
virtual TwoVector Offset(int iz) const =0
Return the polygon offset in iz-th side.
virtual int NofZSections() const =0
Return the number of planes perpendicular to the z axis.
virtual double ZPosition(int iz) const =0
Return the z position of the iz-th plane in mm.
virtual int NofVertices() const =0
Return the number of vertices of outline polygon.
virtual TwoVector Vertex(int index) const =0
Return the index-th vertex of outline polygon.
virtual double Scale(int iz) const =0
Return the polygon scale in iz-th side.
The VGM interface to solids.