Search found 20154 matches

by wmayer
Sat Mar 23, 2013 9:09 pm
Forum: Developers corner
Topic: Add methods to FeaturePython object
Replies: 14
Views: 3244

Re: Add methods to FeaturePython object

With latest version in repository it's possible to add methods:

Code: Select all

def test1(self,arg):
  print arg
  self.test2(arg+1)

def test2(self,arg):
  print arg

s=App.ActiveDocument.addObject("App::FeaturePython")
s.test1=test1
s.test2=test2
s.test1(2)

#delete
del s.test2 
s.test1(2)
by wmayer
Sat Mar 23, 2013 7:17 pm
Forum: Developers corner
Topic: Request to integrate Refine shape algo to Part Design
Replies: 35
Views: 4350

Re: Request to integrate Refine shape algo to Part Design

on github jrheinlaender/double-precision I pushed some changes which you might have overlooked (or maybe they are just unnecessary). I pulled down your branch and did some testing. It appears to be fixed when using the python console, but I am still seeing the problem when using the gui. My testing...
by wmayer
Sat Mar 23, 2013 2:21 pm
Forum: Developers corner
Topic: Request to integrate Refine shape algo to Part Design
Replies: 35
Views: 4350

Re: Request to integrate Refine shape algo to Part Design

I agree on all of your comments, Jan. About getPointFromLineIntersection() we can even remove it since it doesn't seem to be used anywhere. About transformToOutside() and transformToInside() I would leave them as they are because these methods are only used in the Points and Mesh module where we at ...
by wmayer
Sat Mar 23, 2013 11:37 am
Forum: Install / Compile
Topic: Could NOT find QtCore header?
Replies: 9
Views: 8467

Re: Could NOT find QtCore header?

/usr/bin/gcc -I/usr/bin/include -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.c.o -c /u01/freecad/freecad/CMakeFiles/CMakeTmp/CheckSymbolExists.c But it's also strange that this include path "/usr/bin/include" is passed to the compiler. IMO this path doesn't make any sense. So, the...
by wmayer
Fri Mar 22, 2013 4:36 pm
Forum: Help on using FreeCAD
Topic: Empty screen
Replies: 12
Views: 2847

Re: Empty screen

Have a look to this site: http://www.opengl.org/discussion_boards ... set-family
It is about the same problem and there is some help to troubleshoot your problem.
by wmayer
Fri Mar 22, 2013 4:01 pm
Forum: Developers corner
Topic: icon for Part_Export
Replies: 6
Views: 1017

Re: icon for Part_Export

The paper symbolizes a document. So, the arrow pointing towards the document means to add something to it, i.e. to import something, right? I really don't care which colors you want to use. It's your decision.
by wmayer
Fri Mar 22, 2013 3:51 pm
Forum: Developers corner
Topic: Request to integrate Refine shape algo to Part Design
Replies: 35
Views: 4350

Re: Request to integrate Refine shape algo to Part Design

How about putting something like this in PropertyStandard.h: Why do you insist to have that class PropertyDouble? Just believe me we cannot simply change the class name without causing a lot of collateral damages. Just consider PropertyFloat as a class that works with "floating numbers" b...
by wmayer
Fri Mar 22, 2013 10:22 am
Forum: Developers corner
Topic: icon for Part_Export
Replies: 6
Views: 1017

Re: icon for Part_Export

The first one is the current Part_Import icon. Then I thought Part_Export should be the opposite of Import. How do you do the opposite? The two solution I came up with is either reverse the arrow, or reverse the arrow and change the colour to red (the logic being red is the opposite of green). I pr...
by wmayer
Fri Mar 22, 2013 10:14 am
Forum: Developers corner
Topic: Request to integrate Refine shape algo to Part Design
Replies: 35
Views: 4350

Re: Request to integrate Refine shape algo to Part Design

Yes I agree, at some point it should be seamlessly integrated, but while it is still in a testing state, how would you handle this option? Wouldn't it be convenient for testing to be able to flip (one way or another) between the refined and unrefined objects to compare them so you can easily see wh...
by wmayer
Fri Mar 22, 2013 10:04 am
Forum: Developers corner
Topic: Request to integrate Refine shape algo to Part Design
Replies: 35
Views: 4350

Re: Request to integrate Refine shape algo to Part Design

You are probably blocking that out as I was lambasting you with garbage. I can't remember why I was so reluctant to add this function. Maybe it was because the very first version was so slooow :D But feel free to add a parametric function for it. Would it be an option to create an additional Proper...