Lukas Treyer (cnd)
User

Projects

User Details

User Since
Nov 17 2010, 3:54 AM (369 w, 4 h)

Recent Activity

Mon, Dec 11

Lukas Treyer (cnd) added a comment to D2933: Dxf importer: add support for lwpolyline elevation and small bugfix.

Sure. I don't think I can do this. No such action available.

Mon, Dec 11, 4:28 PM · Addons
Lukas Treyer (cnd) committed rBAe6b81de7e176: Applying D2933: Adds support for elevation attribute for lwpolylines (code 38)… (authored by Lukas Treyer (cnd)).
Applying D2933: Adds support for elevation attribute for lwpolylines (code 38)…
Mon, Dec 11, 3:41 PM
Lukas Treyer (cnd) accepted D2933: Dxf importer: add support for lwpolyline elevation and small bugfix.

commited in e6b81de7e1765aa62c56c46a724d67751f321111

Mon, Dec 11, 3:35 PM · Addons

Fri, Dec 8

Lukas Treyer (cnd) added a comment to D2933: Dxf importer: add support for lwpolyline elevation and small bugfix.

sorry I somehow was caught in Java-thinking and didn't expect more than one class in a file..

Fri, Dec 8, 11:55 AM · Addons
Lukas Treyer (cnd) added a comment to D2933: Dxf importer: add support for lwpolyline elevation and small bugfix.

I don't know exactly how python behaves if you have a getter property and an attribute with the same name. But I assume the getter property will always be called when you want to access that attribute/property. So yes, setting .is_closed might not fail, but I still think it's better to straightly modify flags, since I *assume* we're always calling the property, when we want to know about the .is_closed property.

Fri, Dec 8, 11:27 AM · Addons
Lukas Treyer (cnd) added a comment to D2933: Dxf importer: add support for lwpolyline elevation and small bugfix.

Thanks for adding elevation support. I don't see any problems with this. Please share the DXF file if possible. How big is it when you zip it? You could share it with http://pasteall.org/blend/ if it doesn't exceed 30MB.

Fri, Dec 8, 10:57 AM · Addons

Oct 23 2017

Lukas Treyer (cnd) committed rBA5f8aaa2d4e93: Wrap array access for width property in a if-statement to avoid errors with… (authored by Lukas Treyer (cnd)).
Wrap array access for width property in a if-statement to avoid errors with…
Oct 23 2017, 11:25 AM
Lukas Treyer (cnd) added a comment to T53094: DXF import for a file exported from QGIS fails with IndexError: list index out of range.

Also, you can use "center geometry to scene" option and leave away "merge objects" option in your case.

Oct 23 2017, 11:17 AM · Import/Export, Addons
Lukas Treyer (cnd) closed T53094: DXF import for a file exported from QGIS fails with IndexError: list index out of range as Resolved.

added an if statement to make sure the width property of dxf entities can be accessed as a 2dim array.
[can't remember how to link commits... ]
https://git.blender.org/gitweb/gitweb.cgi/blender-addons.git/commit/5f8aaa2d4e93831e329d2203ea9cd42fa32dd2df

Oct 23 2017, 11:09 AM · Import/Export, Addons

Jun 1 2017

Lukas Treyer (cnd) added a comment to T49915: dxf import with dupliface rotates blocks 90° and create non-existing geometry..

If in do.py you move line 1423 after 1426 it helps with the rotation, but I have no clue at the moment how that affects other dxf files.

Jun 1 2017, 4:28 PM · Import/Export, Addons
Lukas Treyer (cnd) added a comment to T49915: dxf import with dupliface rotates blocks 90° and create non-existing geometry..
Jun 1 2017, 3:37 PM · Import/Export, Addons
Lukas Treyer (cnd) closed T51690: DXF importer: some 3dFaces are not imported without warning or errors as Resolved.

solved with d2ed52f2134e
(updated dxfgrabber library)

Jun 1 2017, 2:07 PM · Import/Export, Addons
Lukas Treyer (cnd) committed rBAd2ed52f2134e: updated dxfgrabber library: 0.8.1 -> 0.8.4 (authored by Lukas Treyer (cnd)).
updated dxfgrabber library: 0.8.1 -> 0.8.4
Jun 1 2017, 2:06 PM

May 12 2017

Lukas Treyer (cnd) closed T51476: export ACIS option in DXF importer crashes and ACIS objects are not imported as Invalid.

Here the importer relies on the dxfgrabber library. I have been in contact with its developer a lot when developing the dxf importer. He says, there is no open documentation on DXF solids, since AutoDesk just inserts solids in binary format into the dxf. He was only able to export the solids to sat files. So the behaviour you experience is not a bug "but a feature". We could also just ignore the solids completely, as it was the case with the former dxf importer. At the time when developing the dxf importer there was no python library to read sat files. Therefore, you might rephrase your problem as a feature request. But I am not able to help you with this right now - even if you find a python library for sat files.

May 12 2017, 3:39 PM · Addons
Lukas Treyer (cnd) closed T51474: dxf import crash as Resolved.

added try/except clause; commit cb5b13309073ae7593bc537e8c14ab0bd4f15470
Do you really think this is a simple shape? It's a 3D shape with 210 faces. Or if you really do think, this importer cannot even handle the most simple shapes then start look for the error yourself and adjust the script. The fix I now added, could have been added by someone with at most one hour of intro to python. Just leave out the emotional judging. And don't forget to activate the option that centers your geometry to the middle of the scene. Even AutoDesks online dxf viewer struggles with your geometry when orbiting around it, because it's sooo far away from 0,0.

May 12 2017, 11:06 AM · Addons
Lukas Treyer (cnd) committed rBAcb5b13309073: 'Invalid'/ self intersecting BMFaces are apparently not added to the bmesh… (authored by Lukas Treyer (cnd)).
'Invalid'/ self intersecting BMFaces are apparently not added to the bmesh…
May 12 2017, 10:55 AM

Mar 3 2017

Lukas Treyer (cnd) closed T50827: Problem importing file using DXF importer v. 0.8.6 as Resolved.

Could reproduce your error with an old 2.72 installation. Looks like you have an old addon in your addons folder. The import works with 2.78. I even checked it on windows for you.

Mar 3 2017, 9:59 AM · Addons

Feb 1 2017

Lukas Treyer (cnd) closed T50576: dxf importer crash instantly if SRID is defined in scene as Invalid.

first, install pyproj as discussed with you on blenderartists already.

Feb 1 2017, 4:59 PM · Addons

Oct 11 2016

Lukas Treyer (cnd) added a comment to T49593: dxf importer fails to import correctly.

commit 1b58a90cd418 should solve your issues with bug 3.dxf.

Oct 11 2016, 11:36 AM · Import/Export, Addons
Lukas Treyer (cnd) committed rBA1b58a90cd418: bugfix for T49593: _gen_meshface removes points from a 3DFACE or SOLID if the… (authored by Lukas Treyer (cnd)).
bugfix for T49593: _gen_meshface removes points from a 3DFACE or SOLID if the…
Oct 11 2016, 11:22 AM

Oct 7 2016

Lukas Treyer (cnd) added a comment to T49593: dxf importer fails to import correctly.

Your file has a spline with two point having the same location. The importer should actually handle this; for some reason it didn't.

Oct 7 2016, 11:13 AM · Import/Export, Addons
Lukas Treyer (cnd) committed rBA2f3e4104de5a: bugfix for T49593: more secure checking for same points in bulgepoly_to_cubic (authored by Lukas Treyer (cnd)).
bugfix for T49593: more secure checking for same points in bulgepoly_to_cubic
Oct 7 2016, 11:05 AM

Aug 20 2016

Lukas Treyer (cnd) added a comment to T48806: DXFs with non-ascii characters make th edxf importer to crash..

ok. forgot to push. pushed now.

Aug 20 2016, 3:13 PM · Import/Export, Addons
Lukas Treyer (cnd) committed rBAc6af87952d78: related to the latest file in T48806 I found a small bug, which is fixed now. (authored by Lukas Treyer (cnd)).
related to the latest file in T48806 I found a small bug, which is fixed now.
Aug 20 2016, 3:12 PM

Aug 18 2016

Lukas Treyer (cnd) added a comment to T48806: DXFs with non-ascii characters make th edxf importer to crash..

and just to avoid an extra round of posts here:

Aug 18 2016, 11:17 AM · Import/Export, Addons
Lukas Treyer (cnd) added a comment to T48806: DXFs with non-ascii characters make th edxf importer to crash..

As you can read from the error message ImportError: No module named 'io_import_dxf.dxfgrabber.dxfentities' your error does not have to anything with your files but with my second last erroneous commit. I Added the two missing files last night. So you might just need to update your build and try again.

Aug 18 2016, 11:10 AM · Import/Export, Addons
Lukas Treyer (cnd) closed T48806: DXFs with non-ascii characters make th edxf importer to crash. as Resolved.

I tested it with the newest version. "ä" does not seem to be a problem (anymore?). But I needed to fix a problem with an extrusion value.

Aug 18 2016, 12:18 AM · Import/Export, Addons

Aug 17 2016

Lukas Treyer (cnd) added a comment to T48806: DXFs with non-ascii characters make th edxf importer to crash..

ok. but if I replace all inf.0 with inf and turn off all merging options (no clue yet what is wrong there) I can import your file in Blender. Did you attach the correct file?

Aug 17 2016, 12:01 AM · Import/Export, Addons

Aug 16 2016

Lukas Treyer (cnd) added a comment to T48854: DXF import incorrect.

As you can see on the screenshot I tested with the latest version and it still does no import the file correctly. It might be due to your geometry being offset A LOT. When I go into edit mode and look at a vertex. It's not even displayed correctly since the coordinate seems to be large. I only see 10'000/10'000. ... Probably too much for curves in Blender? There is no support to import it directly as a mesh so far since usually curves are enough and this is also how a user can select more transparently how curves should be "rasterized" to a mesh.

Aug 16 2016, 6:35 PM · Import/Export
Lukas Treyer (cnd) committed rBA37939a32083b: updating to newest version of dxfgrabber; needed for further updates… (authored by Lukas Treyer (cnd)).
updating to newest version of dxfgrabber; needed for further updates…
Aug 16 2016, 6:26 PM
Lukas Treyer (cnd) added a comment to T48806: DXFs with non-ascii characters make th edxf importer to crash..

I looked at it. Forwarded the issue to the author of the dxfgrabber library: https://bitbucket.org/mozman/dxfgrabber/issues/13/inf0-values-not-parsed-properly

Aug 16 2016, 6:26 PM · Import/Export, Addons

Jun 28 2016

Lukas Treyer (cnd) committed rBA1e324200855b: switched lat / lon for projected coordinates using pyproj as suggested in T48652 (authored by Lukas Treyer (cnd)).
switched lat / lon for projected coordinates using pyproj as suggested in T48652
Jun 28 2016, 1:17 PM
Lukas Treyer (cnd) added a comment to T48652: DXF import, inverted longitude latitude.

tracker url in bl_info has been updated in an earlier commit

Jun 28 2016, 1:03 PM · Addons
Lukas Treyer (cnd) closed T48652: DXF import, inverted longitude latitude as Resolved.

commit 1e324200855b7f9f7649856faf28581204fb499c

Jun 28 2016, 1:03 PM · Addons
Lukas Treyer (cnd) added a comment to T48652: DXF import, inverted longitude latitude.

ok... next time maybe somebody not struggling with git wants to do it...
the bugfix by domlysz seems to be valid according to the pyproj documentation. I don't have test environment at hand atm. I expect the amount of users using pyproj to be very low anyway.

Jun 28 2016, 11:14 AM · Addons

Mar 22 2016

Lukas Treyer (cnd) committed rBA872f12f7a76d: dxf importer: fixing wrong tracker and wiki url (authored by Lukas Treyer (cnd)).
dxf importer: fixing wrong tracker and wiki url
Mar 22 2016, 10:59 AM
Lukas Treyer (cnd) committed rBAf4878ea31b08: two new merge methods: 1. merge by layers and closed no-bulge polylines… (authored by Lukas Treyer (cnd)).
two new merge methods: 1. merge by layers and closed no-bulge polylines…
Mar 22 2016, 10:42 AM

Aug 29 2015

Lukas Treyer (cnd) awarded T45734: Grab, rotate, scale with basepoint a Love token.
Aug 29 2015, 11:59 PM · User Interface, BF Blender
Lukas Treyer (cnd) added a comment to T45734: Grab, rotate, scale with basepoint.

Well, that's what you get if you start arguing that a major useability improvement might not be necessary...

Aug 29 2015, 10:51 PM · User Interface, BF Blender
Lukas Treyer (cnd) added a comment to T45734: Grab, rotate, scale with basepoint.

@Bastien: I agree with Donatas. Ask architects why they prefer modeling in Rhino (or ArchiCAD or SketchUp up to some point): because it's easier (= more intuitive (= has better snap tools)). So at the moment the only reason why this patch would not be used so much, is because architects don't use Blender so much. It's exactly patches like this making Blender better for architects. So arguing against it, because it would not be used, is a bit unfair. I think it's an amazing proposal and a great work by Justas and everybody who started working on it. It's a VERY(!!) helpful step towards more architects using Blender.
Example: With this feature I don't need to create transform axes anymore. You know how many times I tried to teach that to my students? When I did, they always asked: uhm, why do we have to learn Blender? Even some of those who were not as skeptical abandoned Blender after a while. Probably because they did not remember the workarounds anymore (or thought it takes too long to create transform axes).
So, if this patch makes messy code even messier (didn't look at it) then the whole code probably needs to be redesigned anyway? I can understand your concerns about the code. I also don't like code to be a huge mess. But this feature should definitely go into master as soon as possible to my opinion.

Aug 29 2015, 12:21 PM · User Interface, BF Blender
Lukas Treyer (cnd) updated subscribers of T45734: Grab, rotate, scale with basepoint.
Aug 29 2015, 11:35 AM · User Interface, BF Blender

Oct 21 2014

Lukas Treyer (cnd) added a comment to T42252: DXF Importer - custom scale - problem with arcs.

Thank you marek for noticing me of this error. It should be solved now. The commit is here: http://git.blender.org/gitweb/gitweb.cgi/blender-addons.git/commit/570b7d94b3b2414e376d9eddd4f3a2df1e4dbb88

Oct 21 2014, 6:25 PM · Import/Export, Addons
Lukas Treyer (cnd) closed T42252: DXF Importer - custom scale - problem with arcs as Resolved.

Closed by commit rBA570b7d94b3b2.

Oct 21 2014, 6:22 PM · Import/Export, Addons
Lukas Treyer (cnd) closed T42216: New DXF Importer in 2.72 struggles with "minimal DXF" (by Paul Bourke) - was OK before. as Resolved.

Commited as rBA68e4b7e6bf9d

Oct 21 2014, 5:18 PM · BF Blender

Oct 16 2014

Lukas Treyer (cnd) added a comment to T42252: DXF Importer - custom scale - problem with arcs.

As for the numeric import: the inputs are treated as strings, since in Blender numeric inputs tend to end up being 0.99999999 instead of 1.0. If I treat everything as strings and convert the strings in python "1.0" remains "1.0". I can check if I can replace comas with points in the strings. But do you really need it? BTW if I type 0,7 in any other numeric Blender field, I get 7.0 instead of 0.7 (tested it with location.z). So I don't think I need to do something about it.
Concerning the arcs: I will look at it and try to fix it in the next days.

Oct 16 2014, 2:05 PM · Import/Export, Addons

Oct 15 2014

Lukas Treyer (cnd) added a comment to T42216: New DXF Importer in 2.72 struggles with "minimal DXF" (by Paul Bourke) - was OK before..

Since your error messages are thrown by the dxfgrabber library I was in contact with its author. Short answer: DXF versions before DXF12 (AC1009) are not supported. I replaced AC1006 with AC1009 in your file and it works. BUT: we still don't know how this might behave. Since there is no complete documentation of any DXF version older than AC1009, those old versions are not supported by dxfgrabber. Any version other than DXF12 therefore gets treated as DXF13, which causes your errors.
I propose you change AC1006 to AC1009 and do some further tests. If everything works fine, we are happy. Otherwise I would propose to make your files conform with DXF12.

Oct 15 2014, 10:36 AM · BF Blender

Oct 14 2014

Lukas Treyer (cnd) added a comment to T42216: New DXF Importer in 2.72 struggles with "minimal DXF" (by Paul Bourke) - was OK before..

Yes. I will have a look at it.

Oct 14 2014, 2:41 PM · BF Blender

Sep 30 2014

Lukas Treyer (cnd) added a project to T42018: 2.72 crashes when displaying beveled poly-curves with spline bevfac mapping: BF Blender.
Sep 30 2014, 9:58 AM · BF Blender: Regressions, BF Blender

Sep 29 2014

Lukas Treyer (cnd) created T42018: 2.72 crashes when displaying beveled poly-curves with spline bevfac mapping.
Sep 29 2014, 11:44 PM · BF Blender: Regressions, BF Blender

Jul 31 2014

Lukas Treyer (cnd) added a comment to T41085: Blender crashes when using "spline" or "segments" for bevel curve factor..

in curve.c --> BKE_curve_bevelList_make --> STEP2 I took out the redundant calculation of bevp->offset. it is being calculated already in STEP 1.

Jul 31 2014, 5:28 PM · BF Blender

Jul 30 2014

Lukas Treyer (cnd) added a comment to T41085: Blender crashes when using "spline" or "segments" for bevel curve factor..

Thank you for the corrections. The issue with the first segment disappearing was an small mistake of mine: move "bevp++;" from line 1398 to line 1393 and it should work out fine.
When I replace MEM_callocN with MEMmallocN I get a strange flickering of the beveled curve when sliding the factor sliders. I propose to leave it with MEM_callocN. There must be a reason why "bl" is initialized with MEM_callocN.

Jul 30 2014, 6:55 PM · BF Blender

Jul 28 2014

Lukas Treyer (cnd) added a comment to T41085: Blender crashes when using "spline" or "segments" for bevel curve factor..

I've been working on a fix. Had some other work to do first. Struggling with Phabricator again, therefore only a diff:

Jul 28 2014, 5:24 PM · BF Blender

Jul 19 2014

Lukas Treyer (cnd) added a comment to T41085: Blender crashes when using "spline" or "segments" for bevel curve factor..

Yes I will have a look at it.
EDIT: What about calculating the length of curves directly in BKE_curve_bevelList_make() in STEP 2 ? I don't see any other reliable possibility to find out whether some bevpoints where omitted for optimization reasons. Would you agree on this?

Jul 19 2014, 9:45 AM · BF Blender

Jun 3 2014

Lukas Treyer (cnd) reopened T40487: DXF Importer as "Open".
Jun 3 2014, 5:38 PM · Addons

May 26 2014

Lukas Treyer (cnd) added a comment to T40223: bevel_factor_mapping_start/end in python loop.

Sorry for urging you to test so much. I am new to C but I will get into the XCode Instruments to deliver a better performance in memory testing next time!
zero check for cu->resolu_ren is not necessary anymore since I get the segcount from nu. It also caused the spline to vanish completely. That might has to do with the array errors you discovered.
Cyclic splines: While I had the idea for this feature thinking about open curves, I think it makes sense for cyclic curves too. It basically always makes sense when you want to animate bevstart/end linearly but having segments not equal in length.

May 26 2014, 7:40 AM · BF Blender

May 25 2014

Lukas Treyer (cnd) added a comment to T40223: bevel_factor_mapping_start/end in python loop.

updating the diff

May 25 2014, 2:45 AM · BF Blender

May 18 2014

Lukas Treyer (cnd) added a comment to T40223: bevel_factor_mapping_start/end in python loop.

inspired by "curve_to_displist()" I could fix the vector bezier handles issue.
Additionally I fixed a problem that became only visible with poly splines: swapping start and end factors occurred sometimes in the wrong place because last- and firstblend were not checked in the if-statement on line 1522.

May 18 2014, 7:24 PM · BF Blender

May 16 2014

Lukas Treyer (cnd) added a comment to T40223: bevel_factor_mapping_start/end in python loop.

I think I could fix it:

May 16 2014, 11:36 AM · BF Blender
Lukas Treyer (cnd) reopened T40223: bevel_factor_mapping_start/end in python loop as "Open".
May 16 2014, 9:41 AM · BF Blender

Jan 22 2014

Lukas Treyer (cnd) added a comment to T38313: DXF Import Addon.

Jan 22 2014, 12:48 PM · Addons
Lukas Treyer (cnd) reopened T38313: DXF Import Addon as "Open".
Jan 22 2014, 12:47 PM · Addons