MCPcopy Create free account
hub / github.com/VCVRack/Rack / getNumPoints

Method getNumPoints

src/window/Svg.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77int Svg::getNumPoints() {
78 if (!handle)
79 return 0;
80 int count = 0;
81 for (NSVGshape* shape = handle->shapes; shape; shape = shape->next) {
82 for (NSVGpath* path = shape->paths; path; path = path->next) {
83 count += (path->npts / 3);
84 }
85 }
86 return count;
87}
88
89
90void Svg::draw(NVGcontext* vg) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected