GCLC is a mathematical software tool for producing high-quality mathematical illustrations, for teaching mathematics, and for automated proving of geometry theorems.
In surveying the C-style casts in the code base, the next candidate that looks like it can be removed is the mallocing code in CJavaView::ReadF. This goes on to operate on a CListOfFaces which contains CFaces which in turn contain vertexs. So it made sense to start reducing complexity from the “bottom” here and work our way up to making CFace::name a std::string. Rather than try to land all of this at once, this PR just tackles the initial changes simplifying vertex and its usages.
In surveying the C-style casts in the code base, the next candidate that looks like it can be removed is the mallocing code in
CJavaView::ReadF
. This goes on to operate on aCListOfFaces
which containsCFace
s which in turn containvertex
s. So it made sense to start reducing complexity from the “bottom” here and work our way up to makingCFace::name
astd::string
. Rather than try to land all of this at once, this PR just tackles the initial changes simplifyingvertex
and its usages.