Search found 21 matches

Go to advanced search

by sanderboer
Tue Sep 17, 2019 9:38 am
Forum: Python scripting and macros
Topic: Basic steps to assign a texture to a face ?
Replies: 4
Views: 199

Re: Basic steps to assign a texture to a face ?

NB:

the placement is not correct in the above snippet, it needs to be:

Code: Select all

p.Placement.Rotation= FreeCAD.Base.Rotation(vec(1,1,0),180
by sanderboer
Tue Sep 17, 2019 9:19 am
Forum: Python scripting and macros
Topic: Basic steps to assign a texture to a face ?
Replies: 4
Views: 199

Re: Basic steps to assign a texture to a face ?

In the netherlands you have a bunch of interesting webmapservices and webfeature services, pretty sure other countries have the same. If you want to take a stab at it, find your country's EPSG and check pyproj.Transformer to transform latlong coords from google maps. Another question: can I embed a ...
by sanderboer
Tue Sep 17, 2019 9:02 am
Forum: Python scripting and macros
Topic: Basic steps to assign a texture to a face ?
Replies: 4
Views: 199

Re: Basic steps to assign a texture to a face ?

Yes, yes, thank you. Here is the snippet: (it relies on owslib, you'll have to adfd that to your python env) from owslib.wms import WebMapService import Part from pivy import coin doc=FreeCAD.ActiveDocument vec = FreeCAD.Base.Vector def get_luchtfoto(LOC_RD, size): url="https://geodata.nationaalgeor...
by sanderboer
Sun Sep 15, 2019 8:59 pm
Forum: Python scripting and macros
Topic: Basic steps to assign a texture to a face ?
Replies: 4
Views: 199

Basic steps to assign a texture to a face ?

Hi, I'm working on a script that downloads an aerial photo of a site and I want to place it in the scene on scale. I have the photo downloader, the geometry is there, but I am poking in the dark when it comes to mapping an image onto geometry. Is there a minimal viable example around ? A simple macr...
by sanderboer
Sat Sep 14, 2019 9:37 am
Forum: Open discussion
Topic: Feature REQ / Question: command line window a la acad / rhino ?
Replies: 1
Views: 81

Feature REQ / Question: command line window a la acad / rhino ?

Hi, tl;dr: how does the community feel about a command line window like acad/ rhino ? Being able to customize aliases, precision input of coordinates (absolute or relative) and transient commands while executing another command (like setting one-off snapping, or a length constraint) ? I am an oldsko...
by sanderboer
Sat Sep 14, 2019 8:21 am
Forum: Open discussion
Topic: Feature Req: Sketcher elements identified by UUID instead of index.
Replies: 2
Views: 149

Feature Req: Sketcher elements identified by UUID instead of index.

Hi, tl;dr: Elements in a sketch should be consistently identifiable across additions/subtractions from the sketch to guarantee persistence to external references. Maybe it is just me, but I rely a lot on 'layered' sketches. I draw main reference lines in one sketch and use them as external reference...
by sanderboer
Thu Sep 12, 2019 8:20 pm
Forum: Draft, Arch & BIM
Topic: Draft.Move copy=true on a window removes WindowParts array(fyi)
Replies: 4
Views: 353

Re: Draft.Move copy=true on a window removes WindowParts array(fyi)

Wait, am I the only one experiencing this ? - insert a window in the scene (not necessarily in wall), - copy it with the Draft copy tool Aaaaand it's gone (the copy that is). If you inspect the copy, you'll notice all the components are gone. Copying windows is a pain for me, am I doing something if...
by sanderboer
Thu Sep 12, 2019 7:56 am
Forum: Install / Compile
Topic: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit
Replies: 6
Views: 211

Re: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit

Your suggestion that it has to do with variable expansion made me think I should better not use them, I wrote the cmake command as such: cmake \ -DBUILD_QT5=ON \ -DCOIN3D_INCLUDE_DIRS=/opt/coin4/include/ \ -DCOIN3D_LIBRARIES=/opt/coin4/lib64/libCoin.so.4.0.0 \ -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \...
by sanderboer
Thu Sep 12, 2019 7:45 am
Forum: Install / Compile
Topic: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit
Replies: 6
Views: 211

Re: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit

Did not think of that, tried it, fails.

In fact, it appears the quoted CMAKE_ARGS are ignored alltogether.
by sanderboer
Wed Sep 11, 2019 6:59 pm
Forum: Install / Compile
Topic: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit
Replies: 6
Views: 211

Re: Cmake config script chokes on setting -DFREECAD_USE_QTWEBMODULE=Qt Webkit

First thing I tried, but cmake-gui shows 'Qt'.

If you do this on the command line by yourself it will work, but when you have a bash script to issue the cmake command, the option loses everything after the space in this option.

Go to advanced search