Macro Texture/cs


FCTexture.png Macro Texture

Description
Creates an image 3D from a BMP image.
Author
Mario52
Links
Makro návody
How to install macros
How to customize toolbars
Version
0.10
Date last modification
2016-12-28


Description

This small macro allows you to build a project 3D very easily from a bitmap image 256 levels of gray.

I hope that this macro will revolutionize the way of thinking the CAD and CNC any image when what can be converted to object 3D without any intervention.

Everything becomes possible regardless of the complexity of the image !

The macro Macro Loft for automate the multi loft

Texture 004 Honda


Use

This macro need an image in 256 gray levels (0-255) therefore before using the macro, convert your image into grayscale (black and white) Lowe. The number of colors is detected automatically, if the image is more than 256 colors another function is expected (to come). Each color (gray level) is regarded as a deep, white (255) the level high and black (0) the lowest level (deep).

Configuration is done before the opening of the file, default values are the settings provided to get a project's dimensions:

The image file unfolds like a scanner x1 x2 x3 ... in 1 mm increments in FreeCAD similarly to the value y of 1 mm at a time. The value of z is given by the value of the color. These values are configurable in the macro.

Attention: depending on the size of the image, the project can become very big! for the record an image of 100 px wide and 100 px in height gives 100 x 100 = 10000 points 'and as each point corresponds to a coordinate, so 10000 coordinates XYZ there.

The interface

Texture 002

The beginning of the operation value automatically adapts to the selected function: 0 if the setting is on black (Black) 255 or 20 if the setting is white (White).

Script

The icons .png FCTexture.png and .svgFCTexture.svg


Macro_Texture.FCMacro

Download the macro to Gist Macro FCTexture.FCMacro

Example

The images were inclined to enhance the 3D effect.









Links

The discussion on the forum to give your impressions or contact me.

The macro Macro Loft for automate the multi loft

apply hair cell texture

How to handle pdf import properly and feasibly?

Revision

that causes an error with the version FreeCAD : Version: 0.14.3343 (Git), Python version: 2.7.6, Qt version: 4.8.5

Online version: "http://www.freecadweb.org/wiki/index.php?title=Macro_Texture/cs&oldid=240689"

Navigation menu