Cleanup: typos in code and comments.

No functional changes.
This commit is contained in:
Kévin Dietrich 2021-09-25 09:15:25 +02:00
parent a3027fb094
commit ab09844be8
7 changed files with 12 additions and 12 deletions

View File

@ -553,7 +553,7 @@ void convertPatchCoordsToArray(const OpenSubdiv_PatchCoord *patch_coords,
} // namespace
// Note: Define as a class instead of typedcef to make it possible
// Note: Define as a class instead of typedef to make it possible
// to have anonymous class in opensubdiv_evaluator_internal.h
class CpuEvalOutput : public VolatileEvalOutput<CpuVertexBuffer,
CpuVertexBuffer,

View File

@ -23,7 +23,7 @@
extern "C" {
#endif
// Keep this a bitmask os it's possible to pass available
// Keep this a bitmask so it's possible to pass available
// evaluators to Blender.
typedef enum eOpenSubdivEvaluator {
OPENSUBDIV_EVALUATOR_CPU = (1 << 0),

View File

@ -56,7 +56,7 @@ typedef enum eSubdivFVarLinearInterpolation {
} eSubdivFVarLinearInterpolation;
typedef struct SubdivSettings {
/* Simple subdivision corresponds to "Simple" option in the interface. When its enabled the
/* Simple subdivision corresponds to "Simple" option in the interface. When it's enabled the
* subdivided mesh is not "smoothed": new vertices are added uniformly on the existing surface.
*
* On an OpenSubdiv implementation level this translates to a subdivision scheme:

View File

@ -127,7 +127,7 @@ typedef struct SubdivForeachContext {
SubdivForeachVertexFromEdgeCb vertex_edge;
/* Called exactly once, always corresponds to a single ptex face. */
SubdivForeachVertexInnerCb vertex_inner;
/* Called once for each loose vertex. One loose coarse vertexcorresponds
/* Called once for each loose vertex. One loose coarse vertex corresponds
* to a single subdivision vertex.
*/
SubdivForeachLooseCb vertex_loose;
@ -144,7 +144,7 @@ typedef struct SubdivForeachContext {
SubdivForeachPolygonCb poly;
/* User-defined pointer, to allow callbacks know something about context the
* traversal is happening for,
* traversal is happening for.
*/
void *user_data;
@ -163,7 +163,7 @@ typedef struct SubdivForeachContext {
* indices (for vertices, edges, loops, polygons) in the same way as subdivision
* modifier will do for a dense mesh.
*
* Returns truth if the whole topology was traversed, without any early exits.
* Returns true if the whole topology was traversed, without any early exits.
*
* TODO(sergey): Need to either get rid of subdiv or of coarse_mesh.
* The main point here is to be able to get base level topology, which can be

View File

@ -50,7 +50,7 @@ typedef struct SubdivMeshContext {
const Mesh *coarse_mesh;
Subdiv *subdiv;
Mesh *subdiv_mesh;
/* Cached custom data arrays for fastter access. */
/* Cached custom data arrays for faster access. */
int *vert_origindex;
int *edge_origindex;
int *loop_origindex;

View File

@ -247,13 +247,13 @@ void write_generated_coordinates(const OCompoundProperty &prop, CDStreamConfig &
coords[vertex_idx].setValue(orco_yup[0], orco_yup[1], orco_yup[2]);
}
if (!config.abc_ocro.valid()) {
if (!config.abc_orco.valid()) {
/* Create the Alembic property and keep a reference so future frames can reuse it. */
config.abc_ocro = OV3fGeomParam(prop, propNameOriginalCoordinates, false, kVertexScope, 1);
config.abc_orco = OV3fGeomParam(prop, propNameOriginalCoordinates, false, kVertexScope, 1);
}
OV3fGeomParam::Sample sample(coords, kVertexScope);
config.abc_ocro.set(sample);
config.abc_orco.set(sample);
}
void write_custom_data(const OCompoundProperty &prop,

View File

@ -79,8 +79,8 @@ struct CDStreamConfig {
* UV map is kept alive by the Alembic mesh sample itself. */
std::map<std::string, Alembic::AbcGeom::OV2fGeomParam> abc_uv_maps;
/* OCRO coordinates, aka Generated Coordinates. */
Alembic::AbcGeom::OV3fGeomParam abc_ocro;
/* ORCO coordinates, aka Generated Coordinates. */
Alembic::AbcGeom::OV3fGeomParam abc_orco;
CDStreamConfig()
: mloop(NULL),