dxf

Convert a B-Spline into Bezier curves

て烟熏妆下的殇ゞ 提交于 2021-02-07 08:27:22
问题 I have a B-Spline curve. I have all the knots, and the x,y coordinates of the Control Points. I need to convert the B-Spline curve into Bezier curves. My end goal is to be able to draw the shape on an html5 canvas element. The B-Spline is coming from a dxf file which doesn't support Beziers, while a canvas only supports Beziers. I've found several articles which attempt to explain the process, however they are quite a bit over my head and really seem to be very theory intensive. I really need

Convert a B-Spline into Bezier curves

做~自己de王妃 提交于 2021-02-07 08:26:02
问题 I have a B-Spline curve. I have all the knots, and the x,y coordinates of the Control Points. I need to convert the B-Spline curve into Bezier curves. My end goal is to be able to draw the shape on an html5 canvas element. The B-Spline is coming from a dxf file which doesn't support Beziers, while a canvas only supports Beziers. I've found several articles which attempt to explain the process, however they are quite a bit over my head and really seem to be very theory intensive. I really need

(Regular Expressions) 2Liner→1Liner

南楼画角 提交于 2020-01-15 20:14:07
问题 Thank you in advance and sorry for the bad english! I want 'Odd rows' 'CRLF' 'Even rows' CRLF' → 'Odd rows' ',' 'Even rows' 'CRLF' Example Input: 0 SECTION 2 HEADER Desired Output: 0,SECTION 2,HEADER What I have tried: Find: (.*)\n(.*)\n Replace: $1,$2\n I want ー Easy to see dxf 回答1: For you example data you could capture one or more digits in capturing group 1 followed by matching a newline. In the replacement use group 1 followed by a comma. Match (\d+)(?:r?\n|\r) Regex demo Replace $1, 回答2

(Regular Expressions) 2Liner→1Liner

折月煮酒 提交于 2020-01-15 20:11:33
问题 Thank you in advance and sorry for the bad english! I want 'Odd rows' 'CRLF' 'Even rows' CRLF' → 'Odd rows' ',' 'Even rows' 'CRLF' Example Input: 0 SECTION 2 HEADER Desired Output: 0,SECTION 2,HEADER What I have tried: Find: (.*)\n(.*)\n Replace: $1,$2\n I want ー Easy to see dxf 回答1: For you example data you could capture one or more digits in capturing group 1 followed by matching a newline. In the replacement use group 1 followed by a comma. Match (\d+)(?:r?\n|\r) Regex demo Replace $1, 回答2

What is the relationship between polyLines vertex and points in the block of DXF file?

戏子无情 提交于 2020-01-06 08:11:35
问题 What is the relationship between polyLines and points in the block of DXF file? If I provide grade rule table file, how to connect them ? 回答1: There is no such relationship. In DXF format. block may contain different entities like points, lines, polylines. Each of them has: position for: point, text, block reference, attribute start point and endpoint in case of line coordinates for polylines In grade rule table You have named points like point #1, #2, #3 . In AAMA DXF file there are text

svg 2 dxf conversion [closed]

半腔热情 提交于 2020-01-02 05:17:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to know where I can find a reliable tool/library for conversion of svg to dxf. In between formats are also allowed as long as the dxf output is an exact replica of the svg. So that means conversion of the paths (and in particular bezier curves and arcs). I've looked at the svg2dxf export in inkscape

Reading .DXF files [closed]

妖精的绣舞 提交于 2019-12-28 04:01:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Does anyone know of source code, ideally in C# or similar, for reading .DXF files (as used by AutoCAD etc)? If not code, then tables showing the various codes (elements / blocks / etc) and their meanings? I am writing a reader myself, and have dead tree documentation detailing the format, but am trying to avoid

Interactive 3d Web Technology

≯℡__Kan透↙ 提交于 2019-12-24 07:47:08
问题 I would like to use interactive 3D models in a web page. The required functionality is: Import dxf file which defines & displays a room. Add/move prebuilt objects from javascript Add/move lamp which cast shadows from javascript Return room dimensions to javascript Return object positions to javascript Can I import dxf files into any WebGL engine? I have a small repeat user base so a browser installation is no problem at all. Is there any plugin technology I could use? Java applets? Unity? Can