thliebig / appcsxcad Goto Github PK
View Code? Open in Web Editor NEWMinimal GUI Application using the QCSXCAD library.
Home Page: http://openEMS.de
License: GNU General Public License v3.0
Minimal GUI Application using the QCSXCAD library.
Home Page: http://openEMS.de
License: GNU General Public License v3.0
* * AppCSXCAD - Minimal Application using the QCSXCAD library * AppCSXCAD is a minimal application using the QCSXCAD library. AppCSXCAD is licensed under the terms of the GPLv3.
I am trying to build this repo, since the APP is not working for me on Ubuntu 20.04
The INSTALL file, line 9, has this info
- change directory to QCSXCAD
Is it right, o it should say AppCSXCAD?
Is it possible to view the structure in 2D view from the negative of the axis chosen? For instance, if I select 2D and yz, I view the structure from the positive x-axis. Is there a way to flip the structure by 180deg such that I can also view the structure from the negative x-axis? I didn't see anything like this in the GUI. The current best way to achieve this (assuming the feature is indeed not available) is to use parallel projection mode with 3D view and then attempt to line everything up manually. However, this is tricky to do well.
Hi,
for certain polygons the AppCSXCAD is showing a weird artifact - it looks like some vertices are missing.
From the openEMS --debug-PEC
dump it seems like openEMS is seeing the correct polygon - just the AppCSXCAD is visualizing it incorrectly.
Maybe related to this http://openems.de/forum/viewtopic.php?f=3&t=444 ?
openEMS PEC dump (white) with AppCSXCAD .stl export (blue) for comparison:
I have minimized the test-case into this script:
close all
clear
clc
FDTD = InitFDTD();
CSX = InitCSX();
CSX = AddMetal(CSX, 'metal');
p(1,1) = 0.00457; p(2,1) = 0.00718;
p(1,2) = 0.00457; p(2,2) = 0.00782;
p(1,3) = 0.00492; p(2,3) = 0.00782;
p(1,4) = 0.00492; p(2,4) = 0.00768;
p(1,5) = 0.00551; p(2,5) = 0.00768;
p(1,6) = 0.00551; p(2,6) = 0.00832;
p(1,7) = 0.00492; p(2,7) = 0.00832;
p(1,8) = 0.00492; p(2,8) = 0.00818;
p(1,9) = 0.00457; p(2,9) = 0.00818;
p(1,10) = 0.00457; p(2,10) = 0.00882;
p(1,11) = 0.00398; p(2,11) = 0.00882;
p(1,12) = 0.00398; p(2,12) = 0.00718;
CSX = AddPolygon( CSX, 'metal', 200, 2, 0.00018001, p);
mesh.x = 0:10e-3;
mesh.y = 0:10e-3;
mesh.z = 0:30e-3;
CSX = DefineRectGrid(CSX, 1, mesh);
WriteOpenEMS('model.xml', FDTD, CSX);
CSXGeomPlot('model.xml');
Generated .xml and the script:
appcsxcad_testcase.zip
openEMS version:
----------------------------------------------------------------------
| openEMS 64bit -- version v0.0.35-63-gba793ac
| (C) 2010-2018 Thorsten Liebig <[email protected]> GPL license
----------------------------------------------------------------------
Used external libraries:
CSXCAD -- Version: v0.6.2-93-gef6e409
hdf5 -- Version: 1.10.5
compiled against: HDF5 library version: 1.10.5
tinyxml -- compiled against: 2.6.2
fparser
boost -- compiled against: 1_72
vtk -- Version: 8.2.0
compiled against: 8.2.0
Create new metal object, name it using Unicode (for example, "Стол 1").
AppCSXCAD will show it as "???? 1" in a property tree and will save it with ISO-8859-1 encoding into XML file (so, there will be something like <Metal ID="2" Name="???? 1">
).
It also won't read properly formed UTF-8 XML file and display gibberish characters instead.
I think that AppCSXCAD should use Unicode for storing the object names and for saving the data.
(I am using Windows.)
If running under Wayland, vtkGenericOpenGLRenderWindow
cannot be initialized and fails with an error message "GLEW could not be initialized: Unknown Error". This is caused by an known Wayland incompatibility issue in the upstream GLEW project, and is already known to affect 20+ GLEW-based downstream projects, including VTK, see [1] for details.
The root cause is that GLEW's glewInit()
attempts to use GLX, which is nonexistent on Wayland. I've reported the problem to the upstream as [2]. Fortunately, it's easy to work around the problem - just ignore the error code GLEW_ERROR_NO_GLX_DISPLAY
, and GLEW will otherwise work without problems. This requires a fix in the upstream VTK code, and I plan to submit a patch soon.
For now, AppCSXCAD under Wayland can use:
env WAYLAND_DISPLAY= /path/to/application/you/want/to/run
to force-run AppCSXCAD under XWayland instead.
For documentation propose, keep this bug open until it's fixed upstream.
[1] nigels-com/glew#172
[2] https://gitlab.kitware.com/vtk/vtk/-/issues/19357
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.