Exemplo n.º 1
0
ViewShape::ViewShape(const ShapeObject& other)
	: index(other.GetIndex())
	, type(other.GetType())
	, offset(0)
	, length(other.GetVertexCount())
	, bounds(other.GetBounds())
{
	std::vector<ShapeObject::Part> other_parts = other.GetParts();
	for (auto part : other_parts) {
		parts.push_back(ViewPart(part.type, part.offset, part.length));
	}
}