Tile Face

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Vincent B
Veteran
Posts: 4739
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Tile Face

Post by Vincent B »

A macro to rig tiles on surfaces. ;) make normals on a surface too.
Select a face, then run the macro.
...
Attachments
Face2try.FCStd
(237.46 KiB) Downloaded 137 times
TileFace.py
(6.69 KiB) Downloaded 169 times
Capture.JPG
Capture.JPG (36.04 KiB) Viewed 4768 times
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: Tile Face

Post by bitacovir »

GlouGlou wrote: Fri Dec 25, 2020 9:05 pm A macro to rig tiles on surfaces. ;) make normals on a surface too.
Select a face, then run the macro.
...
Super cool!!
Maybe you can find more ideas from http://www.co-de-it.com/wordpress/code/blender-tissue
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
Vincent B
Veteran
Posts: 4739
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Tile Face

Post by Vincent B »

I would like to make voronoid or delaunay pattern, but my python level is low. :roll:
User avatar
Czary
Posts: 2
Joined: Mon Oct 01, 2018 2:49 pm

Re: Tile Face

Post by Czary »

Hi, thanks GlouGlou for the macro- great for adding knurling to any object. As I try to recreate german WW2 fighter style grip KG13 there is one little thing to ask- is there any way to change knurling horizontal and vertical angle ?
Image

Looks like knurling is at some 30 deg angle of horizontal axis, while the one I can create looks more square :

Image
OS: Windows 8.1 Version 6.3
Version: 0.19.24291 64bit
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python : 3.8.6+
Qt : 5.15.2
Coin : 4.0.1
OCC : 7.5.0
Locale: Polish
nickeh
Posts: 1
Joined: Sat Feb 19, 2022 10:11 am

Re: Tile Face

Post by nickeh »

Update 20.2.22
So after several restarts of Freecad I still get the same error message but now it works (the only difference is that earlier I had the macro in a custom folder and now it is in the "original" folder, I also renamed the macro from .py to .FSMacro if that is of any difference?

Hi, and thanks for the script. It seems just what I need but does it work in the latest version? When I try to use it on any face I just get this message:

Code: Select all

Part::FeaturePython / TileFace: Links go out of the allowed scope
I get the default 6x6 points and I can change the style but it seems I only get faces and I believe I should get solids? I opened the demo sketch from the first post and I get the following error three times (as there are three objects):

Code: Select all

<string>(1)<class 'AttributeError'>: Module __main__ has no class TileFace
I see the same solids as in the image in the post but I can't make any changes to the tiles. Any ideas on what is wrong? My setup details are below

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24366 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0f9259c)
Hash: 0f9259cda103ae1824ac16c68ac9b4a0d54b05fc
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)
Post Reply