- Carsten Arnholm

Pages: [1] 2 3 4
1
General Discussion / Re: Planned new features in AngelCAD
« on: 2021-01-13, 20:44:46 »
2) I don't understand this question
You either open the file: angelview [<input_filename>]
or if it is already open it will be automatically reloaded

3) This is not standard in any way, and it is only theoretically possible in binary STLs. I don't think it is in use anywhere. There is no such option in the other formats.

2
The code is not complete. The function enclosure() is missing

3
General Discussion / Re: Planned new features in AngelCAD
« on: 2021-01-13, 16:40:42 »
Hi thanks for the feedback

1) Yes I have heard this mentioned. I will look into it before next update. Thanks for bringing it up.

2) First time for a model, after F6 use Tools -> View STL/AMF/DXF to start AngelView (or use the Yellow "View model" icon in the toolbar). For subsequent updates, then AngelView should update automatically when the STL or other file is updated, AngelView monitors the file changes. You can also force the update in AngelView (File -> Reload (F6)).

3) That would require colour information in the STL or other formats, and unfortunately it does not exist. Visualisation in AngelCAD/AngelView is based on stored STL/AMF/OFF/OBJ only.

4
Hi, if you provide a link to the .OFF we might have a look.

Maybe it is some overlap issue, hard to say without the OFF.

5
For windows users, you may have to install the Visual C++ runtime library (AngelCAD is compiled using MSVC 2019)

https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads

6
Hello and sorry for the very late reply (holidays).

I am not sure why this happens, it is possibly a graphics card related issue? I have it working fine under Ubuntu 18.04 and using an old NVIDIA card. Please check if you have the latest graphics drivers.

I have seen similar things when running under a virtual machine without proper graphics card software installed, so I suspect this might be similar.

I will soon upgrade my main computer to Ubuntu 20.04 and I will have a look at this issue then.

7
These new features  mentioned above, DXF import() and text() are now available in the latest release

https://forum.abmesh.com/index.php?topic=71.msg140;topicseen#msg140


8
Announcements / AngelCAD V1.5-06 released (Christmas 2020)
« on: 2020-12-12, 18:35:31 »
A new and improved version of AngelCAD has been released in time for Christmas!
This time, support for Ubuntu 20.04 LTS has been added.

Binaries for Windows, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS:
https://github.com/arnholm/angelcad/releases/tag/V1.5-06

  • Added support for Ubuntu 20.04 lts, be sure to download the version matching you OS version
  • AngelCAD language improvements
    • Allow hull2d() and hull3d() to accept a single solid@
  • Improved DXF import (File-> import 2s DXF...). Now opens result in editor.
  • Fixed issue with mesh repair (File-> Repair mesh file(s)...) (Output format selection disabled until user enables)
  • Extended OpenSCAD .scad support (Note: requires OpenSCAD to be installed)
    • Now includes support for DXF: import(file="model.dxf")
    • Now includes support for text: text(text="Hello World", font=...)
      • font, size, separation can be selected
      • alignment="center" can be specified
      • csgfix: added preprocessor for csg-files for improved processing

9
And... some more news: DXF support is also coming! In some cases, AngelCAD will have more complete support for DXF than OpenSCAD.


10
We have some news relating to OpenSCAD scripts in AngelCAD, text() support is coming!


11
The latest V1.5-02 bugfix update linked to below greatly improves the number of OpenSCAD scripts that can successfully run in AngelCAD

https://forum.abmesh.com/index.php?topic=69.msg136#msg136

12
Announcements / Re: AngelCAD V1.5-00 released
« on: 2020-11-19, 17:46:28 »
After some further testing (thanks to Jon Bondy!) the compatibility with OpenSCAD has been further improved and a bugfix release V1.5-02 has been issued

The changes are
  • now running openscad & polyfix synchronously (more .scad scripts work ok)
  • fixed some compatibility issues relating to openscad .csg import
  • improved error reporting

Windows and Ubuntu binaries are available at
https://github.com/arnholm/angelcad/releases/tag/V1.5-02



13
In this post we will explain what it means to run OpenSCAD .scad scripts with AngelCAD and why it can be a good idea. Using this feature requires AngelCAD V1.5 or newer.

One criticism against OpenSCAD is that it can be very slow and requires a lot of memory to run its .scad scripts. Since the .scad scripts are widely used, it would be a good idea if there was a way to run them faster. That is where AngelCAD comes in. The reason why OpenSCAD is slow and memory hungry is because it is based on the CGAL library. AngelCAD on the other hand is using xcsg which is based on Carve, so it has the potential to be much faster.

How does running .scad scripts work in AngelCAD?

NOTE: OpenSCAD must be installed on the same computer as AngelCAD to use this feature, because OpenSCAD is used for parsing the .scad script into an easier to handle .csg file. This process is however very fast since it does not involve CGAL.

From a user point of view, running .scad scripts in AngelCAD is just as easy as in OpenSCAD, only faster. Drop an .scad script into the AngelCAD editor and press the build button, and the resulting STL or other 3d file format is produced in no time. Behind the scenes, several things will then happen:

First,  AngelCAD calls on OpenSCAD to convert the .scad script into a .scg file (fully automatic):

$ openscad myfile.scad --o myfile.csg

Second, the .csg file is automatically scanned by AngelCAD to see if it contains OpenSCAD import statements referring to STL or OFF files. If it does, these statements are replaced by suitable OpenSCAD polyhedron statements. If the import refers to an STL, AngelCADs polyfix is used to automatically compute the polyhedron. The result is a cleaned up .csg file that also OpenSCAD can read.

Third, the cleaned up .csg file is passed to AngelCADs xcsg application. Normally, xcsg requires the .xcsg file format, but version 1.5 has been enhanced to also accept OpenSCADs .csg files. The result is a 3d STL or other format file.

$ xcsg --stl myfile.csg

This may sound more complicated than running OpenSCAD, but in reality it is just as simple and faster from a user's point of view. All steps are fully automatic and it is much, much faster than running OpenSCAD itself, especially if the model is of some size. This is because the xcsg/carve boolean engine is quite lightweight, it uses native numerical representation and unlike OpenSCAD it is able to employ multi-threading, which means it can use more than one computer core at the same time.

The attached screenshots show AngelCAD running OpenSCAD's example12.scad. This example imports an STL file, so all the steps explained above are being carried out.

Mesh resolution
OpenSCAD has parameters like $fn and $fa to control mesh resolution, but these are not used by AngelCAD/xcsg. Instead, the resolution is controlled by the secant tolerance. This is also true for .scad scripts when run via AngelCAD. As can be seen from the first screenshot below, the command line argument sec_tol=0.01  (alternatively specified as the longer equivalent secant_tolerance=0.01) can be used to control the resulting mesh resolution. For this reason, running the same script through OpenSCAD may result in a slightly different result.

Limitations
The support for OpenSCAD modelling features is relatively complete, but not 100%. The following is a list of .scad language features that are not supported
  • import(file='somefile.dxf'): DXF or SVG file import is not supported. Import of STL and OFF is supported. Edit: DXF support is s available in V1.5-06
  • text(): text command is not supported. Edit: text() support is available in V1.5-06
  • surface(file='surface.dat'): surface command is not supported
  • resize(newsize=[30,60,10]): resize command is not supported
  • polygon without holes is supported, but a polygon with internal holes is not

14
Announcements / AngelCAD V1.5-00 released
« on: 2020-11-15, 17:23:27 »
EDIT: Please use the latest version listed below this post!


A new version 1.5-00 has been released
Windows and Ubuntu pre-builds are available at https://github.com/arnholm/angelcad/releases/tag/v1.5-00

This new version contains several new features as listed on the release page and summarised below. Posts describing the various new features will be created in the
Using AngelCAD forum, where users can participate.

  • New AngelCAD script arguments allow for customization
  • DXF import via File->Import 2d DXF...
  • Mesh repair via File->Repair Mesh file(s)...
  • Edit/run OpenSCAD .scad scripts from AngelCAD editor
  • Capture and display stderr messages from external applications
  • Editor now detects external editing of script files
  • All open editor tabs are now remembered and re-opened in next session
  • "Save & Close all buth this" right-click on editor tab
  • Changed shortcut for Find/Replace from F3 to Ctrl+F
  • Post-build export option
  • Fixed several smaller issues

15
General Discussion / Re: Planned new features in AngelCAD
« on: 2020-10-13, 15:18:42 »
Some more info of upcoming features

General
"Save & Close all but this" option when right-clicking editor tab.
Linux: Now opening default file browser when opening folder
Now displaying also stderr messages from applications running in thread background (xcsg/openscad)

Search/Replace
Shortcut is now Ctrl+F like most other programs
Search now responds properly to pressing ENTER.

OpenSCAD import
OpenSCADs slightly esoteric options in 'linear_extrude', including twist,scale and slices will be supported. Also extrude with multiple children works.
Allow use of secant_tolerance (a.k.a 'sec_tol') to control discretization of imported models.
Added support for projection(cut=true).
Drag & drop of .scad files into AngelCAD IDE works.

Pages: [1] 2 3 4