taxpon / openpyscad

Python library to generate OpenSCAD source code. This library provides intuitive interface when you handle 3D data.
https://pypi.org/project/openpyscad/
MIT License
119 stars 21 forks source link

Add ability to comment on objects #31

Closed GothAck closed 3 years ago

GothAck commented 3 years ago
Cube(size=10).comment("My cube").dumps()

will produce

cube(size=10); // My cube
Cube(size=10).translate([0, 0, 0]).comment("My translated cube").dumps()

will produce

translate(v=[0, 0, 0]){
    cube(size=10);
} // My translated cube
coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.01%) to 99.027% when pulling 4516a001e519de38987cbb66d76949786c33ef54 on GothAck:comment into 8ea67e3e90145e8526fc64eff7c366a6a944b0e4 on taxpon:develop.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.01%) to 99.02% when pulling 928ea65124d03d84b71b0f04242e5c5b2188b5bb on GothAck:comment into c538357091967c49e5cf5c2bb51ae877a77108d7 on taxpon:develop.

taxpon commented 3 years ago

@GothAck Thank you!

taxpon commented 3 years ago

@GothAck your change should be included in 0.5.0, thanks!