<p>Would it be possible with Go and the current libraries to write a CAD application that runs in a browser as a server? The CAD program requires user inputs for the type of object to draw and input parameters and feedback from mouse events on the 2D dimensional drawing or object detection. </p>
<p>I developed a desktop CAD application in Java and really want to convert it to Go. </p>
<hr/>**评论:**<br/><br/>yeah-ok: <pre><p>The question should probably be - is it possible to write a CAD program in WebGL/HTML5? Because that's what would likely need to happen: then the setup, backend and data storage of the program could easily be provided by Go. WebGL can do complex things.. see fx: <a href="https://news.ycombinator.com/item?id=10424850" rel="nofollow">https://news.ycombinator.com/item?id=10424850</a></p></pre>albatr0s: <pre><p>Sure, why not?</p></pre>kardianos: <pre><p>like <a href="https://www.tinkercad.com/" rel="nofollow">https://www.tinkercad.com/</a> ? I think tinkercad was backed by go, at least back in the day.</p></pre>dfab54: <pre><p>I don't have web development experience, just desktop app development experience so any guidance in the basic methodologies I would need to learn is much appreciated.</p>
<p>@kardianos
Yes, I think it would be something similar to tinkercad but in my case the CAD app would be for Electrical Engineers. </p>
<p>Instead of hosting the server remotely, my users should be able to run the web server locally. Since it's only 2D drawings, I don't think I need the power of webGL but maybe only HTML5. </p></pre>RalphCorderoy: <pre><p>To sum-up, it's 2D CAD in a browser using HTML5 (and SVG?) with a local web server that's the Go executable. Are you aware of <a href="https://github.com/gopherjs/gopherjs" rel="nofollow">https://github.com/gopherjs/gopherjs</a> to have even more be Go?</p></pre>dfab54: <pre><p>I wasn't aware of gopherjs. I will see if I can use it and keep as much in Go as possible. Yes, HTML5, SVG and PNG and others.</p>
<p>What would be the best way to detect user mouse and keyboard events and provide text boxes / combo boxes for the user input? </p></pre>dfab54: <pre><p>How do web apps like Tinkercad detect user mouse and keyboard events and provide text boxes / combo boxes for the user input?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传