Search found 10 matches
- Sun Nov 27, 2016 2:08 pm
- Forum: dxflib 'How Do I' Questions
- Topic: problem with arc angles
- Replies: 0
- Views: 22888
problem with arc angles
Dear all! I'm using opencv to fit an ellipse on a given set of points. These points are (x,y) points of an arc. I calculate the start-angle and the end-angle and draw an ellipse on it from angle1 to angle2. It works fine in openCV, but when I try to do the same in the dxf, it puts the arc to some di...
- Wed Nov 23, 2016 4:37 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
Thank You, finally I understand it. You helped me a lot! I could solve it like this: double dashes[2] = { 2.5, -0.5 }; double dashdot[4] = { 5.0, -0.25, 0.25, -0.25}; dw->tableLinetypes(5); dxf.writeLinetype(*dw, DL_LinetypeData("BYBLOCK", "BYBLOCK", 0, 0, 0.0)); dxf.writeLinetype(*dw, DL_LinetypeDa...
- Wed Nov 23, 2016 12:00 am
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
yes, sure but its now updated with circles and arcs too. But I changed nothing on the lines, so its still the problem with dashes and dashdot.
- Tue Nov 22, 2016 3:13 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
double dashes[2] = { 2.5, -0.5 }; double dashdot[2] = { 5.0, -0.5 }; dw->tableLinetypes(5); dxf.writeLinetype(*dw, DL_LinetypeData("BYBLOCK", "BYBLOCK", 0, 0, 0.0)); dxf.writeLinetype(*dw, DL_LinetypeData("BYLAYER", "BYLAYER", 0, 0, 0.0)); dxf.writeLinetype(*dw, DL_LinetypeData("CONTINUOUS", "Fille...
- Tue Nov 22, 2016 12:59 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
any idea why?
- Mon Nov 21, 2016 4:05 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
something like this? This compiles at least, thanks! double dashes[2] = { 2.5, -0.5 }; dw->tableLinetypes(3); dxf.writeLinetype(*dw, DL_LinetypeData("BYBLOCK", "BYBLOCK", 0, 0, 0.0)); dxf.writeLinetype(*dw, DL_LinetypeData("BYLAYER", "BYLAYER", 0, 0, 0.0)); dxf.writeLinetype(*dw, DL_LinetypeData("CO...
- Mon Nov 21, 2016 2:51 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
yes, I tried something like this: dw->tableLinetypes(5); dxf->writeLinetype(*dw, DL_LinetypeData("BYBLOCK", "BYBLOCK", 0, 0, 0.0)); dxf->writeLinetype(*dw, DL_LinetypeData("BYLAYER", "BYLAYER", 0, 0, 0.0)); dxf->writeLinetype(*dw, DL_LinetypeData("CONTINUOUS", "Filled", 0, 0, 0.0)); dxf->writeLinety...
- Mon Nov 21, 2016 1:42 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
Re: Dashed and dotted lines on different layers
thank you for your quick reply. I tried something like this: dw->tableLinetypes(3); dxf->writeLinetype(*dw, DL_LinetypeData("BYBLOCK", "BYBLOCK", 0, 0, 0.0)); dxf->writeLinetype(*dw, DL_LinetypeData("BYLAYER", "BYLAYER", 0, 0, 0.0)); dxf->writeLinetype(*dw, DL_LinetypeData("CONTINUOUS", "Filled", 0,...
- Mon Nov 21, 2016 1:13 pm
- Forum: QCAD 'How Do I' Questions
- Topic: ellipse arc problem
- Replies: 1
- Views: 2564
ellipse arc problem
Dear everyone! I have some arcs on my picture. I get the points of the arcs with findcontour, and the points of the contour is my vector. I can get the starting point and the end points of the vector. When I try to fitEllipse to these vectors I get ellipses that match the contour. So far its ok! BUT...
- Mon Nov 21, 2016 1:04 pm
- Forum: dxflib 'How Do I' Questions
- Topic: [solved] Dashed and dotted lines on different layers
- Replies: 13
- Views: 37273
[solved] Dashed and dotted lines on different layers
Hello everyone! I would like to ask, how can I draw a dashed (--- --- --- ---) and a dashdot (--- - --- - --- - ---) line with dxflib? Also I would like to draw them to different layers: continuous lines to layer '0', dashed line to layer 'd', and dashdot line to layer 'dd' . I read the documentatio...