autocad - How does CAD save 3d shapes? and can I read from it? -
for example, how cad save such 3d shape?
mean, save something:
points = [[0,0,0],[0,1,0],[1,1,0],[1,0,0]] lines = [[points[1], points[2]],[points[2],points[3]]] because want draw 3d shapes(in python , render in webpages), , want know how stored in files.
as can see web-sites such this one, there's no "one format rule them all." every cad program (like every other computer program ...) wound defining "its own, app-specific format." autocad 1 of many. there various "standard" (sic ...) formats ... almost-inevitably "xml-based" ... designed allow model-information shared among programs. typically, "export" model 1 of these formats.
"and then, google find somebody else(!) has perfected python module knows how read file-format." can quite sure not have write-and-debug code yourself. (after all, "you not first soul have needed sort of thing ...")
normally, don't try deal "the application's native format," because, if vendor in question saw fit publish it, contains "everything, including kitchen sink." stuff don't need. "export file" preferable (and, designed ...) reason.
Comments
Post a Comment