Not sure about the underscore style in C++, but I've not seen it in Ruby.
What's it for? "definition" seems to be fine in that context.

Sent from my Sony Xperia™ smartphone

Jim Foltz <notifications@github.com> wrote:

>In src/sketchup-stl/exporter.rb:
>
>> @@ -68,12 +68,9 @@ def self.find_faces(file, entities, scale, tform) > if entity.is_a?(Sketchup::Face) > write_face(file, entity, scale, tform) > face_count += 1 > - elsif entity.is_a?(Sketchup::Group) > - # (!) Beware - Due to a SketchUp bug this can be incorrect. > - # Fix later. > - find_faces(file, entity.entities.parent.entities, scale, tform * entity.transformation) > - elsif entity.is_a?(Sketchup::ComponentInstance) > - find_faces(file, entity.definition.entities, scale, tform * entity.transformation) > + elsif entity.is_a?(Sketchup::Group) or entity.is_a?(Sketchup::ComponentInstance) > + defn = Utils.definition(entity) > + find_faces(file, defn.entities, scale, tform * entity.transformation) 
>
>defn does seem awkward. def is obviously no good. I'm OK with using long variable names.
>
>I'm OK with this: 
>
>definition = Utils.definition(entity) 
>
>or 
>
>entity_definition = Utils.definition(entity) 
>
>Isn't there a c++ convention for using underscores? 
>
>definition_ = Utils.definition(entity) 
>
>—
>Reply to this email directly or view it on GitHub.￼
>