Coder Social home page Coder Social logo

gcad3d / gcad3d Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 33.0 41 MB

parametric 3D CAD with viewer, import, export, NC.

Home Page: http://www.gcad3d.org

License: Other

Shell 0.35% Makefile 0.51% C 98.96% C++ 0.05% GDB 0.01% Vim Script 0.12% Batchfile 0.01%
3d c cad dxf iges obj parametric step

gcad3d's People

Contributors

ckitgui avatar gcad3d avatar glixx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcad3d's Issues

Program causes undefined operation

Hi!
I bumped into rpmlint warnings when building rpm in OBS:

[  251s] I: Program causes undefined operation
[  251s]    (likely same variable used twiceand post/pre incremented in the same expression).
[  251s]    e.g. x = x++; Split it in two operations.
[  251s] W: gcad3d sequence-point ../gr/ut_DL.c:2971

Build with flags: -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

Move html and msg directories into /usr/share/gcad3d

Using /usr/share/doc/gcad3d is not good. This directory is special directory for documentation, but not for files, which application uses. /usr/share/gcad3d is ok.

Directory /usr/share/doc/gcad3d is used by macros %doc to install really documentation for gcad3d (section %files of spec file):

%doc README TODO LICENSE* doc/gCAD3D_log.txt

spurious-executable-perm

gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/ut/cv_parl_pln.c
gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/exp/print_pdf.c
gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/ut/ut_face.c
gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/ut/ut_log.c
gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/gr/glbt.c
gcad3d-debuginfo.x86_64: W: spurious-executable-perm /usr/src/debug/mnt/serv1/Devel/gcad3d/src/xa/xa_print__.c

find ./ -name *.c -exec chmod 644 {} ;

MinGW64 testing

Neu in Version 1.44 / 2010-02-18...
 MS-Windows: now using MinGW (until now Micosoft Visual-C)

Doubtful, as no MinGW targets are clearly defined and WIN32 build chain still uses nmake, after ten years.
"do c", "do gui", etc appear to require complete refactoring to work properly (e.g linking DLL fails because other, as yet unbuilt internal libraries are required, windows only accepts --no-undefined :)

Documentation also still specifies MSVC. Is MinGW dead for this?

i18n improvement

Suggestion: use system language on first start for unknown languages too. User should add msg file without changing code and program will use it.

don't export revolved surfaces in IGES

Hi I'm learning to use gCAD3D a little but it does not export revolved surface and the extrusions of the planes is wrong, but the display is correct in gCAD3D

this is my code

# 2021/12/30-17:29:56
# Precison input
P20=0,0,0
P21=250,0,0
P22=500,0,0
P23=250,0,250
P24=250,1000,350
S20=BSP P(0 0 250) P(100 570 280) P(250 1000 350)
S21=BSP P(500 0 250) P(250 1000 350)
C20=P(250 0 250) 250 D(RY)
L20=P(250 1000 350) P(250 1000 850)
L22=P(250 0 250) P(250 250 250)
R(RY P24)
C21=ARC P(P24) ANG(0) ANG(-180) 50 CW
L21=P(0 150 0) P(100 150 0)
R(RZ)
A20=SRV R(L21) C21 180 360 0 1 CW
A21=SRU C20 D(L22)
A22=SRU L20 D(L21)
ATTS "C001155" A20
ATTS "C0044FF" A21
ATTS "C990000" A22

image
this is the IGES imported in FreeCAD
image
and this the imported IGES in gCAD3D
image

Migrate to gitlab

Might find it easier to find contributors if you migrate to gitlab.gnome.org

wrong-file-end-of-line-encoding

[ 85s] RPMLINT report:
[ 85s] ===============
[ 88s] gcad3d.x86_64: W: wrong-file-end-of-line-encoding /usr/share/doc/packages/gcad3d/gCAD3D_log.txt
[ 88s] This file has wrong end-of-line encoding, usually caused by creation or
[ 88s] modification on a non-Unix system. It could prevent it from being displayed
[ 88s] correctly in some circumstances.

Same strings, but different variables

MMmdDlo and MMundo have same strings "undo (delete last operation; Ctrl-Z)"
MMmdRlo and MMredo have same strings "redo (restore last operation; Ctrl-Y)"

English and German are different

Please fix strings:
"MAN: paste textBuffer after delete or ctrl X"
"Viewer"
"B-Spline = join (connect) lines/circs/b-splines" (Circles or Arcs?)
"select or keyIn obj to dump .."

BSpline constrained to CPlane and also to Bspline

Hi I'm learning gCAD3D and didn't think I could do something like the rowboat below in the picture

.
I don't know where I cab ask for support and I thought do it here.



However, I will close this thread if this is not the best way or if I have an answer.



I wanted to know how you can create a curve that can coincide with a construction plane and be connected to a curve at one end of it

.
Thank you

image

The code of this boat

# 2022/01/02-18:54:17
#Row boat Half Hull
L20=P(18 300 530) P(4200 15 680) #Ref_01
L21=P(1920 0 400) P(1920 600 400) #Ref_02
S20=BSP P(18 300 530) P(1920 600 400) P(4200 15 680) #Sheer
S21=BSP P(18 300 530) P(19 150 300) P(25 15 100) #Ref_Transom

L22=P(-87.13365993 0 739.6318644) P(328.8199463 0 -56.95853177)
R20=P(L22 0.625108) D(L22) #ContructionP-Transom
R20 #Active CPlane
S22=BSP P(S21 PTS(1)) P(-132.0681077 254.7077813) P(-63.14105146 121.2548258) P(41.34761996 51.12785859) P(143.3337226 15 -0.4618833717) #Transom
RZ #Rest CP

L23=P(-306.9228912 0 1152.528285) P(328.8199463 0 -56.95853177)
S23=BSP P(S20 PTS(2)) P(4195.840376 15 284.1636974) P(4161.304648 15 102.8511256) P(3992.942975 15 33.77966971)  #Bow
S25=BSP P(S23 PTS(2)) P(S22 PTS(2)) #keel

S26=BSP P(S20 0.5) P(S25 0.543795)
S27=BSP P(S20 0.5) P(1925.13175 497.7201018 221.1976354) P(1937.604449 331.2659655 151.6661597) P(S25 0.543795)
S28=BSP P(S20 0.882812) P(3632.061293 143.42442 256.9858662) P(S25 0.096039)
#S29=BSP P(S22 0.399902) P(S27 0.25) P(S24 0.28125) P(S23 0.125)
#S30=BSP P(S20 0.882812) P(S25 0.096039)
#S31=BSP P(S20 0.882812) P(S25 0.096039)
L24=P(1131.289 15 95.240) P(1131.289 15 800)
R21=P(L24 PTS(1)) D(L24)
R21
S24=BSP P(290.1290258 643.425509) P(99.1806746 584.165677) P(4.803903314 274.6976651) P(-54.45592982 46.4375712)
RZ
A20=BSP U(S20 S25) U(S23 S28 S27 S22) #Gordon surfaces with BSpline Networks

R20
S30=BSP P(S21 PTS(1)) P(-420 0 0) P(S32 PTS(1))
RZ
S31=BSP P(S22 PTS(2)) P(S33 PTS(2))

#Mirror BSpiline
S32=MIR S20 RY 
S33=MIR S25 RY
S34=MIR S23 RY
S35=MIR S28 RY
S36=MIR S27 RY
S37=MIR S22 RY
A21=BSP U(S32 S33) U(S34 S35 S36 S37)
A22=BSP U(S23 S34)
A23=BSP U(S25 S33)
A24=BSP U(S22 S37) U(S31 S30)
#A25=BSP U(S20 S32)

ATTS "C002299" A20 #surfaces color attribute
ATTS "C002299" A22
ATTS "C002299" A23
ATTS "C002299" A24

German strings in English msg file

CADname=Objektname / info (search it with "Search/Name")
TRAnsform_obj__Tra_=Objekt verschieben (Verschiebung) oder drehen (Verdrehung)
LN_parallel=Line parallel tu line/vector

Non-standard icon path in launcher for GNU/Linux systems

Currently the icon path in the application launcher file is hardcoded to the following non-standard path:
Icon=/usr/share/gcad3d/icons/gCAD3D.xpm

This prevents icon theming without editing the launcher file.

According to the freedesktop.org standard valid application launcher icon locations are:
/usr/share/icons/hicolor/[size]/apps/
~/.local/share/icons/hicolor/[size]/apps/
/usr/share/pixmaps/

According to the standard and w.r.t. icon lookup mechanisms of GNU/Linux DEs for an icon installed to a standard location you can change the icon path line to simply:
Icon=gCAD3D (absolute path and file type extension not needed)

Please find an example .desktop file here

Could you please install the icon to one of those locations and adjust the icon path in the .desktop file accordingly?

Control building of all files

Current realization has issue when you cannot be sure you will install all what you need.
Needs to control each building file (binary, library, everything) if it was created/built or not. If not, then do not continue building, to stop and to generate error.

/usr/bin/ld: cannot find xa_gui.so: No such file or directory

On my Archlinux derivative (Parabola), it shows while I run "./do complete"

cd /home/user/gcad3d/src/APPbin/gcad3d/Linux_x86_64/ &&
cc -o gCAD3D
xa.o xa_msg.o mdl__.o xa_obj_txt.o xa_edi__.o xa_ed.o xa_ed_mem.o xa_src.o xa_ato.o xa_grp.o xa_ga.o xa_dll.o xa_app.o xa_appDat.o catalog.o ckint_fac.o cvoff2.o mdlfn.o ut_DB.o ut_dbo.o NC_Main.o NC_apt.o ut3d_npt.o ut2d_npt.o ut_gtypes.o ut_ox_base.o ut_transform.o ut_ui_TX.o ut_pspl.o ut_bspl.o ut_rbspl.o ut_bsp_approx.o cvClot.o utemp.o cirMoeb.o ut_col.o ut_srv.o ut_sru.o ut_dump.o ut_err.o ut_surstd.o ut_sbsp.o ut_srbsp.o ut_objtab.o ut_bez.o ut_rbez.o ut_tria.o ut_quat.o ut_plg.o ut_cvtrm.o ut_elli.o ut_cvApp.o ut_sdc.o ut_project.o ut_gsrc.o ut_tess.o ut_hatch.o ut_log.o ubs.o ubscrv.o ubssur.o sbsu1.o u3d.o ut_cvoff.o ut_msh.o ut_face.o tess_su.o ut_tess_su.o tess_ut.o tess_vr_ut.o ut_GLU.o glbt.o grtsu.o ut_prcv__.o ut_prcv_db.o ut_cntf.o ut_geo2d.o ut_geo3d.o ut_iTab.o ut_dbf.o ut_obj.o ut_txfil.o ut_txt.o ut_umb.o ut_math.o ut_umem.o ut_mem.o ut_box.o ut_txTab.o ut_int.o ut_uti.o byteorder.o ut_memTab.o ut_memTab1.o itab.o ut_BitTab.o deb_prt.o tstf__.o ut_os__.o xa_main.o xa_ctrl.o xa_ui.o xa_cad_ui.o xa_cad_inp.o xa_cad_ccv_ui.o xa_cad_ed1.o xa_sele.o xa_brw.o xa_gmvo.o xa_ted.o xa_meas.o xa_mod_att.o xa_ico.o xa_objmenu.o xa_objvwr.o xa_aux.o xa_undo.o xa_del.o ui_tex.o xa_tex.o xa_ui_gr.o xa_vwpt.o xa_tra.o xa_plu.o xa_prg.o xa_proc.o xa_objLst.o xa_joint.o catalog_gui.o opar.o srcu.o gui_base.o bmp_ut.o csv_ut.o print_pdf.o ds3_r.o ige_w.o prt_w.o lwo_r.o ut_gr.o ut_GL.o ut_DL.o ut_gtx.o gru.o ut_dim.o gr_sSym.o gl_solids.o os_uix.o ut_os_aix.o ctrl_os_aix.o
-lGLU -lGL -lm -ldl -rdynamic -Wl,--unresolved-symbols=ignore-all
xa_gui.so
/usr/bin/ld: cannot find xa_gui.so: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [gcad3d.mak:79: default] Error 1
****** ERROR gcad3d.mak *******
****** ERROR build core *******

Error in compiling

Hi I managed to compile the previous version but this new version seems to be fine, but when I try to do the launch with the command ./do it does not find the gCAD3D file.

I don't understand why this happens below the output of the ./do complete command.
and the error I get when I try to test with ./do.

====================== Link plugins/PRC_demo1 ======================
cd /home/pafu/devel/bin/gcad3d/Linux_x86_64/ &&\
gcc -o plugins/PRC_demo1.so  prc_Demo1__.o\
     -shared -export-dynamic
make[1]: uscita dalla directory "/home/pafurijaz/devel/gcad3d/src/APP"
touch ../prc/cut1/G-Code.c
make -f ../prc/cut1/G-Code.mak
make[1]: ingresso nella directory "/home/pafurijaz/devel/gcad3d/src/APP"
build G-Code -> /home/pafu/devel/bin/gcad3d/Linux_x86_64/
cc -o G-Code ../prc/cut1/G-Code.c  ../prc/cut1/pp_ut.c  -lm
ctags --excmd=number -f ut.tag ../prc/cut1/pp_ut.c
mv -f G-Code /home/pafu/devel/bin/gcad3d/Linux_x86_64/plugins/cut1/.
make[1]: uscita dalla directory "/home/pafu/devel/gcad3d/src/APP"
if [ $? -ne 0 ]; then exit 1; fi
link processes done OK
- success do complete
~/devel/gcad3d/src/APP$ ./do
start - OSTYPE =  Linux
normal start ..
./do: 614: ./do: /home/pafu/devel/bin/gcad3d/Linux_x86_64/gCAD3D: not found

Thanks

fails to build on debian sid for me

hi

i'm trying to make a debian package, however can you have a look at the build log at
http://sid.ethz.ch/debian/gcad3d/

the logfile is called, gcad3d_0+git20180223-1_i386.build, at the very end, is the commands that fail.
any hints, how to build it without the directories you have on your build computer?

No compile under Debian Testing

I'm trying to compile under Debian testing but have this output:

[...]

../prc/prc_cut1__.c:214:9: warning: implicit declaration of function ‘PRCE_Out_write_ln’ [-Wimplicit-function-declaration]
PRCE_Out_write_ln ("FROM ");
^
../prc/prc_cut1__.c:217:9: warning: implicit declaration of function ‘APT_disp_SymV1’ [-Wimplicit-function-declaration]
APT_disp_SymV1 (SYM_TRIANG, 0, &actPos, 0.5); // Dreieck klein
^
../prc/prc_cut1__.c:230:13: warning: implicit declaration of function ‘PRCE_Out_write_txt’ [-Wimplicit-function-declaration]
PRCE_Out_write_txt ("TL 1");
^
../prc/prc_cut1__.c:240:9: warning: implicit declaration of function ‘PRCE_Out__’ [-Wimplicit-function-declaration]
PRCE_Out__ ("G1 ");
^
../prc/prc_cut1__.c:245:7: warning: implicit declaration of function ‘PRCE_cmd_work__’ [-Wimplicit-function-declaration]
PRCE_cmd_work__ (data);
^
../prc/prc_cut1__.c:254:24: warning: implicit declaration of function ‘PRCE_Out_clr_up’ [-Wimplicit-function-declaration]
if(rapid == OFF) PRCE_Out_clr_up ();
^
../prc/prc_cut1__.c:282:9: warning: implicit declaration of function ‘PRCE_disp_ln’ [-Wimplicit-function-declaration]
PRCE_disp_ln (i1);
^
../prc/prc_cut1__.c:305:11: warning: implicit declaration of function ‘PRCE_disp_txt’ [-Wimplicit-function-declaration]
PRCE_disp_txt (outBuf);
^
../prc/prc_cut1__.c:362:5: warning: implicit declaration of function ‘PRCE_hist_save’ [-Wimplicit-function-declaration]
PRCE_hist_save();
^
../prc/prc_cut1__.c: In function ‘PRCE_disp__’:
../prc/prc_cut1__.c:443:5: warning: implicit declaration of function ‘GR_DrawSur’ [-Wimplicit-function-declaration]
GR_DrawSur (&ox1, 5, -1L);
^
../prc/prc_cut1__.c:621:5: warning: implicit declaration of function ‘PRCE_disp_ci’ [-Wimplicit-function-declaration]
PRCE_disp_ci ();
^
../prc/prc_cut1__.c: In function ‘PRCE_disp_ln’:
../prc/prc_cut1__.c:646:9: warning: implicit declaration of function ‘GR_CreLine’ [-Wimplicit-function-declaration]
GR_CreLine (&dli, iatt, &ln1);
^
../prc/prc_cut1__.c: In function ‘PRCE_disp_ci’:
../prc/prc_cut1__.c:661:9: warning: implicit declaration of function ‘GR_CreCirc’ [-Wimplicit-function-declaration]
GR_CreCirc (&dli, iAtt_cut, &actCir);
^
../prc/prc_cut1__.c: In function ‘PRCE_disp_txt’:
../prc/prc_cut1__.c:676:9: warning: implicit declaration of function ‘DL_StoreObj’ [-Wimplicit-function-declaration]
dli = DL_StoreObj (Typ_SymV, -1L, 0);
^
../prc/prc_cut1__.c:679:3: warning: implicit declaration of function ‘GL_DrawTxtA’ [-Wimplicit-function-declaration]
GL_DrawTxtA (&dli, Typ_Att_hili1, &oldPos, txt);
^
../prc/prc_cut1__.c: In function ‘PRCE_func__’:
../prc/prc_cut1__.c:703:5: warning: implicit declaration of function ‘PRC_set_CmdTab’ [-Wimplicit-function-declaration]
PRC_set_CmdTab (NCCmdTab);
^
../prc/prc_cut1__.c:709:5: warning: implicit declaration of function ‘PRCE_init_dat’ [-Wimplicit-function-declaration]
PRCE_init_dat ();
^
../prc/prc_cut1__.c:712:5: warning: implicit declaration of function ‘DL_InitAttRec’ [-Wimplicit-function-declaration]
DL_InitAttRec (iAtt_rp, 5, 1, 3);
^
../prc/prc_cut1__.c:718:5: warning: implicit declaration of function ‘PRCE_tb_init’ [-Wimplicit-function-declaration]
PRCE_tb_init ();
^
../prc/prc_cut1__.c:741:5: warning: implicit declaration of function ‘PRCE_hist_reset’ [-Wimplicit-function-declaration]
PRCE_hist_reset (i1);
^
../prc/prc_cut1__.c:752:18: warning: implicit declaration of function ‘PRCE_m3Menu__’ [-Wimplicit-function-declaration]
if(i1 == -1) PRCE_m3Menu__ (0);
^
../prc/prc_cut1__.c: In function ‘PRCE_m3Menu__’:
../prc/prc_cut1__.c:783:12: warning: implicit declaration of function ‘UI_GR_selMen_init’ [-Wimplicit-function-declaration]
return UI_GR_selMen_init (1);
^
../prc/prc_cut1__.c:791:3: warning: implicit declaration of function ‘UI_GR_ButtonM1Release’ [-Wimplicit-function-declaration]
UI_GR_ButtonM1Release (); // else KeyM1=ON ! 2013-05-01
^
../prc/prc_cut1__.c: In function ‘PRCE_cmd_work__’:
../prc/prc_cut1__.c:897:12: warning: implicit declaration of function ‘DB_GetObjDat’ [-Wimplicit-function-declaration]
i1 = DB_GetObjDat (&vp1, &rNr, ityp, dbi);
^
../prc/prc_cut1__.c:939:7: warning: implicit declaration of function ‘PRCE_Out_ck_C’ [-Wimplicit-function-declaration]
PRCE_Out_ck_C (s1);
^
../prc/prc_cut1__.c:955:12: warning: implicit declaration of function ‘UT3D_npt_ox’ [-Wimplicit-function-declaration]
i1 = UT3D_npt_ox (&ptNr, pta, &ox1, UT_DISP_cv);
^
../prc/prc_cut1__.c:971:7: warning: implicit declaration of function ‘PRCE_Out_ck_plg’ [-Wimplicit-function-declaration]
PRCE_Out_ck_plg (s1, ptNr, pta);
^
../prc/prc_cut1__.c: In function ‘PRCE_Out_ck_plg’:
../prc/prc_cut1__.c:1008:8: warning: implicit declaration of function ‘UT3D_ipt_cknear_3pt’ [-Wimplicit-function-declaration]
i1 = UT3D_ipt_cknear_3pt (&oldPos, &pta[0], &pta[ptNr-1]);
^
../prc/prc_cut1__.c:1012:5: warning: implicit declaration of function ‘MEM_inv_rtab’ [-Wimplicit-function-declaration]
MEM_inv_rtab (ptNr, pta, sizeof(Point));
^
../prc/prc_cut1__.c: In function ‘PRCE_Out__’:
../prc/prc_cut1__.c:1088:7: warning: implicit declaration of function ‘PRCE_Out_write_ci’ [-Wimplicit-function-declaration]
PRCE_Out_write_ci (wTyp); // G2 G3
^
../prc/prc_cut1__.c: In function ‘PRCE_tb_init’:
../prc/prc_cut1__.c:1253:5: warning: implicit declaration of function ‘PRCE_tb_win’ [-Wimplicit-function-declaration]
PRCE_tb_win (&UIw_Box_TB, GUI_SETDAT_EI(TYP_EventPress,UI_FuncInit));
^
../prc/prc_cut1__.c: In function ‘PRCE_tb_win’:
../prc/prc_cut1__.c:1282:7: warning: implicit declaration of function ‘PRCE_pp__’ [-Wimplicit-function-declaration]
PRCE_pp__ ();
^
../prc/prc_cut1__.c:1306:7: warning: implicit declaration of function ‘GUI_Tip’ [-Wimplicit-function-declaration]
GUI_Tip ("select and start postprocessing");
^
../prc/prc_cut1__.c:1333:7: warning: implicit declaration of function ‘APP_Help’ [-Wimplicit-function-declaration]
APP_Help ("PRC_cut1", "");
^
../prc/prc_cut1__.c:1340:7: warning: implicit declaration of function ‘PRCE_tb_exit’ [-Wimplicit-function-declaration]
PRCE_tb_exit ();
^
../prc/prc_cut1__.c:1341:7: warning: implicit declaration of function ‘UI_main_set__’ [-Wimplicit-function-declaration]
UI_main_set__ (UI_MODE_VWR);
^
../prc/prc_cut1__.c: In function ‘PRCE_tb_exit’:
../prc/prc_cut1__.c:1376:3: warning: implicit declaration of function ‘GL_temp_delete’ [-Wimplicit-function-declaration]
GL_temp_delete (); // alle temp. obj loeschen ..
^
../prc/prc_cut1__.c: In function ‘PRCE_pp__’:
../prc/prc_cut1__.c:1450:3: warning: implicit declaration of function ‘UI_but_END’ [-Wimplicit-function-declaration]
UI_but_END (); // reprocess whole model
^
../prc/prc_cut1__.c:1500:3: warning: implicit declaration of function ‘TX_file_Print’ [-Wimplicit-function-declaration]
TX_file_Print (fnLog);
^
mv -f prc_cut1__.o /home/despinosa/devel/gcad3d/gCAD3D/binLinux64/.
rm -f ../tags/prc_cut1__.tag
ctags -f ../tags/prc_cut1__.tag -IMemTab ../prc/prc_cut1__.c
ctags: cannot open tag file : No such file or directory
compile.mak:3: fallo en las instrucciones para el objetivo 'prc_cut1__.o'
make[1]: *** [prc_cut1__.o] Error 1
make[1]: se sale del directorio '/home/despinosa/Proyectos/gcad3d/src/APP'

link PP's for PRC_cut1

make -f ../prc/cut1/G-Code.mak
make[1]: se entra en el directorio '/home/despinosa/Proyectos/gcad3d/src/APP'
gcc -o G-Code ../prc/cut1/G-Code.o ../prc/cut1/pp_ut.o -lm
ctags --excmd=number -f ut.tag ../prc/cut1/pp_ut.c
cp G-Code /plugins/cut1/.
cp: no se puede crear el fichero regular '/plugins/cut1/.': No existe el fichero o el directorio
../prc/cut1/G-Code.mak:36: fallo en las instrucciones para el objetivo 'G-Code'
make[1]: *** [G-Code] Error 1
make[1]: se sale del directorio '/home/despinosa/Proyectos/gcad3d/src/APP'
gcad3d.mak:115: fallo en las instrucciones para el objetivo 'allDemos'
make: *** [allDemos] Error 2

Wrongest info version

Hi and thanks for your works, there is a little mistake on description on Linux version, that report a different version name than released, the header and info say 2.46.10 instead of 2.46.12 the system report the correct version 2.46.12.

implicit-pointer-decl

Hi!
I bumped into rpmlint warnings when building rpm in OBS:

[  251s] I: Program is using implicit definitions of functions getting
[  251s]    pointers or implemented by macros. These functions need to use their
[  251s]    correct prototypes to allow correct argument passing on e.g. x86_64 .
[  251s]      - Implicit memory/string functions need #include <string.h>.
[  251s]      - Implicit *printf functions need #include <stdio.h>.
[  251s]      - Implicit *printf functions need #include <stdio.h>.
[  251s]      - Implicit *read* functions need #include <unistd.h>.
[  251s]      - Implicit *recv* functions need #include <sys/socket.h>.
[  251s] W: gcad3d implicit-pointer-decl ../gr/ut_GL.c:13013
[  251s] W: gcad3d implicit-pointer-decl ../ut/ctrl_os_aix.c:123
[  251s] W: gcad3d implicit-pointer-decl ../xa/xa_ato.c:410, 1720
[  251s] W: gcad3d implicit-pointer-decl ../xa/xa_ed.c:3379, 3387
[  251s] W: gcad3d implicit-pointer-decl ../xa/xa_ui_gr.c:1392

Build with flags: -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

[Patch] Wrong desktop file

desktop-file-validate gCAD3D.desktop
gCAD3D.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
gCAD3D.desktop: warning: value "GTK;Application;Graphics;VectorGraphics;Viewer;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application"
gCAD3D.desktop: hint: value item "VectorGraphics" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Graphics;2DGraphics
gCAD3D.desktop: error: key "GenericName[de]" in group "Desktop Entry" is a localized key, but there is no non-localized key "GenericName"
gCAD3D.desktop: error: key "GenericName[en]" in group "Desktop Entry" is a localized key, but there is no non-localized key "GenericName"

[Desktop Entry]
Name=gCAD3D
GenericName=CAD-CAM-Application
Comment=3D CAD CAM design tool
Exec=gcad3d
Icon=/usr/share/gcad3d/icons/gCAD3D.xpm
Type=Application
Categories=GTK;Graphics;
Terminal=false


# Translations
GenericName[de]=CAD-CAM-Anwendung
Name[de]=gCAD3D
Icon[de]=/usr/share/gcad3d/icons/gCAD3D.xpm
Comment[ru]=3D САПР
GenericName[ru]=САПР
Name[ru]=gCAD3D
Icon[ru]=/usr/share/gcad3d/icons/gCAD3D.xpm
  1. Get gCAD3D.desktop from transifex.com from English (it will include all translations)
  2. chmod 644 gCAD3D.desktop

Provide AppImage

Providing an AppImage would have, among others, these advantages:

  • Applications packaged as an AppImage can run on many distributions (including Ubuntu, Fedora, openSUSE, CentOS, elementaryOS, Linux Mint, and others)
  • One app = one file = super simple for users: just download one AppImage file, make it executable, and run
  • No unpacking or installation necessary
  • No root needed
  • No system libraries changed
  • Works out of the box, no installation of runtimes needed
  • Optional desktop integration
  • Optional binary delta updates, e.g., for continuous builds (only download the binary diff) using AppImageUpdate
  • Can optionally sign your AppImages (inside the file) using gpg2
  • Works on Live ISOs
  • Can use the same AppImages when dual-booting multiple distributions
  • Can be listed in the AppImageHub central directory of available AppImages
  • Can double as a self-extracting compressed archive with the --appimage-extract parameter

Here is an overview of projects that are already distributing upstream-provided, official AppImages.

Please see https://docs.appimage.org/packaging-guide/from-source/index.html for more information.

implicit-fortify-decl

Hi!
I bumped into rpmlint errors when building rpm in OBS:

[  251s] I: Program is using implicit definitions of special functions.
[  251s]    these functions need to use their correct prototypes to allow
[  251s]    the lightweight buffer overflow checking to work.
[  251s]      - Implicit memory/string functions need #include <string.h>.
[  251s]      - Implicit *printf functions need #include <stdio.h>.
[  251s]      - Implicit *printf functions need #include <stdio.h>.
[  251s]      - Implicit *read* functions need #include <unistd.h>.
[  251s]      - Implicit *recv* functions need #include <sys/socket.h>.
[  251s] E: gcad3d implicit-fortify-decl ../ut/ctrl_os_aix.c:184
[  251s] E: gcad3d implicit-fortify-decl ../xa/../gui/../gui/gui_base.h:109

Build with flags:
-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

Statement is overflowing a buffer

Hi!
I bumped into rpmlint erros when building rpm in OBS:

[  251s] I: Statement is overflowing a buffer
[  251s] E: gcad3d bufferoverflow /usr/include/bits/string3.h:109

Build with flags: -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

UI/UX improvements

Are there any plans/ToDo list to modernize GUI to provide better UI/UX for gCAD3D users?

Actually GUI looks very ugly due to cluttering & varied size of buttons in toolbar.

Export vrml 1

Hi dear developer there's a bug in the exporting file to vrml 1 even the file generated from gCAD from a simple Obj imported file generate a corrupted file with none geometry and also gCAD dosen't import any geometry, from it's saved file.
Greetings!

Wrong strings

msg_es.txt:
Eliminar MMcaDel Catálogo de standardparts
De carga MMapSta y la aplicación de inicio (script)
=>
MMcaDel Eliminar Catálogo de standardparts
MMapSta De carga y la aplicación de inicio (script)

msg_fr.txt
Vr0 pas de variables définies ..
Pedine *** ERROR: insertposition sélectionnez la courbe active ..
Pede1 *** ERROR: PointEditor est active ..
=>
VR0 pas de variables définies ..
PEDine *** ERROR: insertposition sélectionnez la courbe active ..
PEDe1 *** ERROR: PointEditor est active ..

Universal install-type

Hi, I'm an ArchLinux user and I wanted to use this software but while I was compiling the source I noticed how the possibility of compiling without creating a deb or a rpm is not considered.

Is it possible in the future to have a compile option without mandatory packaging?

Building for MInGW missing do?

The local "./do" script referred to in install_en.txt does not exist in repo, no instructions to generate?

Also, this is a standard shell command as well - very confusing.

gcad3d was crashed on win10

gcad3d version : 2.46.12
windows version : win 10

Console output :

+++++++++++++ Start xa 2019-11-20 1
OS_hide_win
minimize |gCAD3D|
arg[0]|C:\cad\gCAD3D\binMS32\gCAD3D.exe|
sMax = 216
AP_get_dir__
pwd = |C:\Users\i\AppData\Roaming|
gcad_dir_dev = |(null)|
gcad_dir_bas = |C:\cad\gCAD3D|
OS_Init_ |C:\cad\gCAD3D\binMS32\gCAD3D.exe|
bindir = |C:\cad\gCAD3D\binMS32|
basdir = |C:\cad\gCAD3D|
docdir = |C:\cad\gCAD3D\doc|
locdir = |C:\Users\i\AppData\Roaming\gCAD3D|
tmpdir = |C:\Users\i\AppData\Roaming\gCAD3D\tmp|
cfgdir = |C:\Users\i\AppData\Roaming\gCAD3D\cfg|
icodir = |C:\cad\gCAD3D\icons|
ex-W32-OS_get_lang |ch|
AP_lang |ch|
scan- 21 |C:\cad\gCAD3D\doc\msg|
------ ex AP_lngTab_set 7
0 |de|
1 |en|
2 |es|
3 |fr|
4 |it|
5 |ms|
6 |ru|
Debug-switch DDEB is ON
local:|C:\Users\i\AppData\Roaming\gCAD3D| base:|C:\cad\gCAD3D|
test configfile |C:\Users\i\AppData\Roaming\gCAD3D\cfg\gCAD3D.rc|
L_startup_defaults:
AP_defaults_read |C:\Users\i\AppData\Roaming\gCAD3D\cfg\xa.rc|
AP_mod_dir=|C:\Users\i\AppData\Roaming\gCAD3D\dat|
AP_lang=|ch|
OS_browser=|explorer|
AP_printer=|print|
Modelname=|unknown.gcad|
AP_dir_prg=|C:\Users\i\AppData\Roaming\gCAD3D\prg|
active application=|| 4
AP_editor=|notepad|
AP_winSiz=|-600,-400|
DefaultModelsize=0.000000
****** ERROR AP_defaults_read - DefaultModelsize 0.000000
MSG_const_init |ch|
MSG_const__ E000-34
*** (null): cannot access C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
*********** *** (null): cannot access C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
**** MSG_const_init E001 C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
***** MESSAGEFILE C:\cad\gCAD3D\doc\msg\msg_ch.txt DOES NOT EXIST *****OMN_init
MSG_const__ E000-0
MSG_const__ E000-1
MSG_const__ E000-2
MSG_const__ E000-3
MSG_const__ E000-4
MSG_const__ E000-5
MSG_const__ E000-6
MSG_const__ E000-7
MSG_const__ E000-8
MSG_const__ E000-9
MSG_const__ E000-10
MSG_const__ E000-11
MSG_const__ E000-12
MSG_const__ E000-13
MSG_const__ E000-14
MSG_const__ E000-15
MSG_const__ E000-16
MSG_const__ E000-17
MSG_const__ E000-18
MSG_const__ E000-19
MSG_const__ E000-20
MSG_const__ E000-21
MSG_const__ E000-22
MSG_const__ E000-23
MSG_const__ E000-24
MSG_const__ E000-25
MSG_const__ E000-26
MSG_const__ E000-27
MSG_const__ E000-28
MSG_const__ E000-29
MSG_const__ E000-30
MSG_const__ E000-31
MSG_const__ E000-32
MSG_const__ E000-33
MSG_const__ E000-34
MSG_const__ E000-35
MSG_const__ E000-36
MSG_const__ E000-37
MSG_const__ E000-38
MSG_const__ E000-39
MSG_const__ E000-40
AP_DllLst_write
PRC_lst_processors
path-plugins=|C:\cad\gCAD3D\binMS32\plugins/|
::::DL_alloc__ 10000 240000
GTK_MAJOR_VERSION=2 GTK_MINOR_VERSION=24
Ico_init
UI_win_main 90
MSG_const__ E000-22
UI_lang_men |ch|
UI_lang_men - cannot find lang. ch - defaulted english.
*********** UI_lang_men - cannot find lang. ch - defaulted english.
***** UMB_pos__ E001
***** UME_obj_get E001
lang-activate |��獆
***** UMB_pos__ E001
***** UME_obj_get E001
MSG_const_init |ch|
MSG_const__ E000-34
*** (null): cannot access C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
*********** *** (null): cannot access C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
**** MSG_const_init E001 C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
***** MESSAGEFILE C:\cad\gCAD3D\doc\msg\msg_ch.txt DOES NOT EXIST ***** men_hlp-L31
GL_RENDERER: (null)
GL_VERSION: (null)
GL_EXTENSIONS: (null)
GLU_VERSION: 1.2.2.0 Microsoft Corporation
GLU_EXTENSIONS:
gtk_gl_area_class_init
win_resize-|-600,-400| 600 400
MSG_const_init |ch|
MSG_const__ E000-34
*** (null): cannot access C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
**** MSG_const_init E001 C:\cad\gCAD3D\doc\msg\msg_const_ch.txt
***** MESSAGEFILE C:\cad\gCAD3D\doc\msg\msg_ch.txt DOES NOT EXIST ***** gCAD3D Version 2.46.12 GUI: gtk2.24
display functions:
-move:=Shift + drag mouse (do not push mousebuttons)
-rotate:=Ctrl + drag mouse
-zoom:=Shift + Ctrl + drag mouse
::::UTF_alloc__ 100 0 0
reall > 2000004
ex-UTF_alloc__
GL_Init__ mode=0 395 224
GL_InitInfo
GL_RENDERER: Intel(R) HD Graphics 630
GL_VERSION: 4.5.0 - Build 23.20.16.4973
GLU_VERSION: 1.2.2.0 Microsoft Corporation
GLU_EXTENSIONS: GL_EXT_bgra
GL_DEPTH_BITS = 24
GL_STENCIL_BITS = 8
GL_ACCUM_RED/GREEN/BLUE/ALPHA_BITS = 16 16 16 16
GL_RED/GREEN/BLUE/ALPHA_BITS = 8 8 8 8
AP_stat.texture=1
AP_Get_Setup C:\Users\i\AppData\Roaming\gCAD3D\cfg\gCAD3D.rc |TEXTURE_ON|
GL_Init0
AP_SetCol__ 147 147 173
::::GLT_alloc_pta 3 0 25000 25000
::::GLT_alloc_cta 1 0 10000 10000
::::GLT_alloc_ppa 1 0 6000 6000
::::GLU_alloc 1 0 400 400
UI_view_Z_CB |0.0|
UI_view_Z_CB 0.000000
UI_GR_view_set_Cen1 0.000000
TODO: let newOri = point 0,0,0 moved zVal units along constrPlane.VZ;
TODO: let constrPlane.ori = newOri;
AP_src_new
UI_PRI__ 24
::::DB_allocCDAT 0 2000000
::::DB_allocLine 0 0 5000 5000
::::DB_allocModRef 0 0 200 200
AP_Init_planes
UI_suract_keyIn 1
UI_GR_view_set_Cen1 0.000000
TODO: let newOri = point 0,0,0 moved zVal units along constrPlane.VZ;
TODO: let constrPlane.ori = newOri;
Mod_sav_i savActMdl=-1
Mod_sav_ck 0
AP_tmr_init ............
init pipes ..
OS_CTL_read_init |C:\Users\i\AppData\Roaming\gCAD3D\tmp\CTRLpin|
CTRL_CB__ fnSwap=|C:\Users\i\AppData\Roaming\gCAD3D\tmp\CTRLfin|
OS_CTL_write_init |C:\Users\i\AppData\Roaming\gCAD3D\tmp\CTRLpout|

(gCAD3D.exe:37500): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 113: Invalid UTF-8 encoded text in name - not valid '\xfaN\u0017\x9a`>M - GCAD, STP/STEP, IGS/IGE/IG2, DXF, 3DS, STL, LWO, WRL(VRML1), OBJ(WaveFront), TESS, BMP, JPG'

(gCAD3D.exe:37500): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 113: Invalid UTF-8 encoded text in name - not valid '\xfaN\u0017\x9a`>M - GCAD, STP/STEP, IGS/IGE/IG2, DXF, 3DS, STL, LWO, WRL(VRML1), OBJ(WaveFront), TESS, BMP, JPG'

Install/uninstall scripts

Needs to have script, what will install files into target dir.
./do install prefix, where prefix is parameter or / (root) by default.

So %install section of spec file will be:
./do install %{buildroot}

It needs not only for packaging, but for installation directly in system without package. If gcad3d was installed directly, then needs to have uninstall script.

non-standard-dir-perm

gcad3d.x86_64: E: non-standard-dir-perm (Badness: 1) /usr/share/doc/gcad3d/msg 0700
gcad3d.x86_64: E: non-standard-dir-perm (Badness: 1) /usr/share/gcad3d/icons 0700

Fix:
chmod 755 doc/msg
chmod 755 icons

no-return-in-nonvoid-function

Hi!
I bumped into rpmlint warnings when building rpm in OBS:

[  251s] I: Program returns random data in a function
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_button.c:375
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_dlg_std.c:843
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_multichoice.c:502, 961
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_tree_it.c:866
[  251s] E: gcad3d no-return-in-nonvoid-function ../ut/ctrl_os_aix.c:128
[  251s] 
[  251s] I: Program returns random data in a function
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_button.c:375
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_dlg_std.c:843
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_multichoice.c:502, 961
[  251s] E: gcad3d no-return-in-nonvoid-function ../gui_gtk3/gtk_tree_it.c:866
[  251s] E: gcad3d no-return-in-nonvoid-function ../ut/ctrl_os_aix.c:128
[  251s] I: A function uses a 'return;' statement, but has actually a value
[  251s]    to return, like an integer ('return 42;') or similar.
[  251s] W: gcad3d voidreturn ../gui_gtk3/gtk_base.c:2104
[  251s] W: gcad3d voidreturn ../gui_gtk3/gtk_menu.c:203
[  251s] W: gcad3d voidreturn ../gui_gtk3/gtk_multichoice.c:260, 882
[  251s] W: gcad3d voidreturn doxy_help1.c:655, 666

Build with flags:
-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables

New Library

Have you any option to create a Library LGPL, for re-use your code by others? One for non-gui, one for gui widgets and liked against your APP?

May you can create a new project for each. May I can help you to use Autotools.

May I can help you to create Vala bindings for your libraries.

make: *** No rule to make target

Build error:

[  160s] mv -f ut_hatch.o /home/abuild/rpmbuild/BUILD/gcad3d-2.35+git20170419.c50f21f/binLinux32/.
[  160s] rm -f ../tags/ut_hatch.tag
[  160s] ctags -f ../tags/ut_hatch.tag -IMemTab ../ut/ut_hatch.c
[  160s] make: *** No rule to make target 'dummy.o', needed by 'default'.  Stop.
[  160s] error: Bad exit status from /var/tmp/rpm-tmp.di1hgQ (%build)

File not found:
find . -name dummy.c

Clean up html dir

Move all extra files from doc/html dir to another dir, leave only files for installation. It will help to install doc/html dir with all files.

Export Issue in Mesh objects

Hi, I saw that several formats I tried are not exported, I hope you can find the time to solve these problems, I have already reported these problems in the past but I noticed that the situation is always the same, I am attaching a zip file that contains a mesh imported from obj which I tried saving in various mesh formats, but none of them are exported correctly, in fact they are all empty files.

I tried STL VRML1 and 2, and also DXF but all are wrong.

Greetings
Abstract_imp.zip

I can't install 2.60

Hi I can't install the latest version of gCAD3D, in Linux xubuntu 22.04 LTS, the software installer after installation crashes and shows the installed application but nothing works, I tried with gdebi but with that it even crashes crash as soon as I press the install button.

I don't know what the problem could be but in fact I can't launch the application, I wanted to install the previous version which at least works, but now I can't find even an old build, how install a previous version?
greetings.

TED_ldf and TED_ldn conflict

There are same variables for different strings:

TED_ldf=load image
TED_ldf=load texture from imagefile
TED_ldn=reload
TED_ldn=reload imagefile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.