OpenSCAD Workbench/es: Difference between revisions

From FreeCAD Documentation
(language spanish)
(Updating to match new version of source page)
Line 1: Line 1:
El módulo OpenSCAD está en un estado de desarrollo inicial.
The OpenSCAD module is in an early stage of development.


El módulo OpenSCAD ofrece interoperabilidad con el software de código libre OpenSCAD [http://www.openscad.org/].
The OpenSCAD module offers interoperability with the open source software [http://www.openscad.org/ OpenSCAD].


[[Image:OpenSCADexamaple1.png|Un ejemplo de geometría importada de OpenSCAD]]


[[Image:OpenSCADexamaple1.png|An example of imported OpenSCAD geometry]]
Contiene un [[OpenSCAD_CSG/es|importador]] que permite abrir los archivos [[OpenSCAD_CSG/es|.csg]] de OpenSCAD en FreeCAD.


El [[OpenSCAD_CSG/es|exportador]] crea una salida basada en el subárbol de CSG a geometría [[OpenSCAD_CSG|.csg]] que no está basada en operaciones CSG y se exportará como una malla.
It contains an [[OpenSCAD_CSG|importer]] which allows you to open the [[OpenSCAD_CSG|.csg]] output from OpenSCAD in FreeCAD.


The [[OpenSCAD_CSG|exporter]] outputs a CSG based (sub-)tree to [[OpenSCAD_CSG|.csg]]. Geometry which is not based on CSG operations and is exported as a mesh.
El módulo OpenSCAD contiene una serie de herramientas con funciones para modificar el árbol de operaciones y reparar modelos.
The OpenSCAD module contains a toolbox with functions to modify the feature tree and repair models.


== OpenSCAD lenguaje y formato de archivo ==
== OpenSCAD language and file format ==
The OpenSCAD language allows the use of variables and loops. It allows you to specify submodules to reuse geometry and code. This high degree of flexibility makes parsing very complex. Currently the OpenSCAD module in FreeCAD can not handle the OpenSCAD language natively.
Instead, if OpenSCAD is installed, it can be used to convert the input to an output format named 'CSG'. It is a subset of the OpenSCAD Language and can be used as the input to OpenSCAD for further processing.
During conversion all parametric behavior is lost - all variable names are discarded, loops expanded and mathematical expressions evaluated.


== GUI Commands ==
El lenguaje de OpenSCAD permite la utilización de variables y bucles. Permite especificar submódulos para reutilizar geometría y código. Esta alto grado de flexibilidad hace el análisis sintáctico muy complejo. Actualmente el módulo OpenSCAD en FreeCAD no puede manejar el lenguaje de OpenSCAD de forma nativa.
{{OpenSCAD Tools}}
En cambio si OpenSCAD está instalado, se puede utilizar para convertir la entrada en un formato de salida denominado 'CSG'. Es un subconjunto del lenguaje OpenSCAD y se puede utilizar como la entrada de OpenSCAD para su procesamiento posterior.


== Limitations ==
Durante la conversión todo el comportamiento paramétrico se pierde. Todos los nombres de variables serán desechados, los bucles expandidos y las expresiones matemáticas evaluadas.
OpenSCAD creates constructive solid geometry as well as importing mesh files and extruding 2d geometry (from dxf files). FreeCAD allows you to create CSG with primitives as well. The FreeCAD geometry kernel (OCCT) works using a boundary representation.
Therefore conversion from CSG to BREP should, in theory, be possible whereas conversion from BREP to CSG is, in general, not.


OpenSCAD works internaly on meshes. Some operations which are useful on meshes are not meaningful on a BREP model and are currently not available. Among these are convex hull, minkowski sum, glide and subdiv.
== Comandos de la interfaz gráfica del usuario ==
OpenSCAD is very tolerant when doing booleans on coincident geometry. The FreeCAD geometry kernel is less tolerant. An automatic solution is not available at the moment. Please feel free to post to the forum if you encounter such problems.


== Hints ==
{{OpenSCAD Tools/es}}
When importing DXF set the Draft precision to a sensible amount as this will affect the detection of connected edges.


If FreeCAD crashes when importing CSG, it is strongly recommended that you enable 'automatically check model after boolean operation' in Menu -> Edit -> Preferences -> Part Design -> Model setting
== Limitaciones ==


== Links ==
OpenSCAD crea geometría sólida constructiva así como la importación de archivos de malla y extrusión de geometría 2D (a partir de archivos DXF). FreeCAD te permite crear CSG también con primitivas. El núcleo de geometría de FreeCAD (OCCT) funciona trabajando sobre una representación de los limites.
* [http://www.thingiverse.com/tag:openscad Things tagged with "Openscad" on Thingiverse]
Por tanto la conversión de CSG a BREP en teoría debería ser posible. Mientras que una conversión de BREP a CSG es, en general, imposible.


{{clear}}
OpenSCAD funciona internamente con mallas. Algunas operaciones que son útiles con mallas no tienen sentido en un modelo BREP y actualmente no están disponibles. Además están las cáscaras convexas, suma de Minkowski, deslizar y subdividir.
<languages/>

OpenSCAD es muy tolerante cuando se realizan operaciones booleanas en geometrías coincidentes. El núcleo de geometría de FreeCAD es actualmente menos tolerante. De momento no existe una solución automática. Por favor, escribe en el foro si te encuentras con estos problemas.

== Pistas ==

Cuando se importa DXF establecer la precisión a una cantidad sensible para que afecte a la detección de aristas conectadas.

Si FreeCAD se cuelga importando CSG, es muy recomendable activar 'automáticamente comprobar el modelo después de una operación booleana' en el menú Editar -> Preferencias -> Diseño de Piezas Parámetros del modelo

== Enlaces ==

* [http://www.thingiverse.com/tag:openscad Elementos etiquetados con "Openscad" en Thingiverse]

{{languages/es | {{en|OpenSCAD_Module}} {{fr|OpenSCAD_Module/fr}} {{it|OpenSCAD_Module/it}} }}

Revision as of 21:44, 20 March 2014

The OpenSCAD module is in an early stage of development.

The OpenSCAD module offers interoperability with the open source software OpenSCAD.


An example of imported OpenSCAD geometry

It contains an importer which allows you to open the .csg output from OpenSCAD in FreeCAD.

The exporter outputs a CSG based (sub-)tree to .csg. Geometry which is not based on CSG operations and is exported as a mesh. The OpenSCAD module contains a toolbox with functions to modify the feature tree and repair models.

OpenSCAD language and file format

The OpenSCAD language allows the use of variables and loops. It allows you to specify submodules to reuse geometry and code. This high degree of flexibility makes parsing very complex. Currently the OpenSCAD module in FreeCAD can not handle the OpenSCAD language natively. Instead, if OpenSCAD is installed, it can be used to convert the input to an output format named 'CSG'. It is a subset of the OpenSCAD Language and can be used as the input to OpenSCAD for further processing. During conversion all parametric behavior is lost - all variable names are discarded, loops expanded and mathematical expressions evaluated.

GUI Commands

Template:OpenSCAD Tools

Limitations

OpenSCAD creates constructive solid geometry as well as importing mesh files and extruding 2d geometry (from dxf files). FreeCAD allows you to create CSG with primitives as well. The FreeCAD geometry kernel (OCCT) works using a boundary representation. Therefore conversion from CSG to BREP should, in theory, be possible whereas conversion from BREP to CSG is, in general, not.

OpenSCAD works internaly on meshes. Some operations which are useful on meshes are not meaningful on a BREP model and are currently not available. Among these are convex hull, minkowski sum, glide and subdiv. OpenSCAD is very tolerant when doing booleans on coincident geometry. The FreeCAD geometry kernel is less tolerant. An automatic solution is not available at the moment. Please feel free to post to the forum if you encounter such problems.

Hints

When importing DXF set the Draft precision to a sensible amount as this will affect the detection of connected edges.

If FreeCAD crashes when importing CSG, it is strongly recommended that you enable 'automatically check model after boolean operation' in Menu -> Edit -> Preferences -> Part Design -> Model setting

Links