25 std::vector<std::unique_ptr<Primitive>>& out_primitives)
const override;
35 std::size_t addVertex(
const math::Vector3R& vertex, std::vector<math::Vector3R>*
const out_vertices)
const;
36 std::size_t addMidpointVertex(
const std::size_t iA,
const std::size_t iB, std::vector<math::Vector3R>*
const out_vertices)
const;
37 std::shared_ptr<GTriangleMesh> genTriangleMesh()
const;
42 ClassType clazz(
"sphere");
43 clazz.docName(
"Spherical Geometry");
44 clazz.description(
"A perfectly round shape centering around origin.");
48 radius.description(
"Size of the sphere.");
50 clazz.addField(radius);
Information about the world being cooked.
Definition CookingContext.h:24
void storeCooked(CookedGeometry &out_geometry, const CookingContext &ctx) const override
Store data suitable for rendering into out_geometry.
Definition GSphere.cpp:32