How to cover a floor with a bitmap in Autodesk Revit - revit-api

I want to cover a floor in Autodesk Revit with an external bitmap (e.g. png file). The texture should be visible in both 2D and 3D view.
enter image description here

Related

How can I magnify an Image in openCV without resize

I have an image with size 75x75 pixels and I want to select a Region of Interest in this image.
The small size of the image does not allow an accurate selection of the interesting pixels using opencv.
I already have a ROI selection function using the opencv library.
Is there a way to magnify each pixel so that opencv displays each image pixel using 4 pixels of the screen? Resizing is not an option since I need the exact pixel positions of the ROI.

How to get Revit export image coordinates or reference point?

I want to have a reference point or to know the coordinates of any point on an exported Image (from any view) from Revit.
For example in the attached image exported from Revit, I'd like to know the bounding box of the picture or the middle point of the picture (in X,Y coordinates) or any other reference point.
Plan image
Is there a way to extract the bounding box coordinates of the picture?
I would suggest defining two diagonally opposite points in your image file that you can identify precisely in your Revit model. Determine their image pixel coordinates, export their Revit model coordinates, and use this information to determine the appropriate scaling and translation.
The RoomEditorApp Revit add-in and its corresponding roomedit CouchDb web interface demonstrate exporting an SVG image from Revit, scaling it for display in a web browser, and transformation and calculation of exact coordinates back and forth between two environments.

Convert/export graphics from Pov-Ray in 2D vector format

By default, Pov-Ray renders a bitmap file. Is there a way to convert or export the same image, in a vector format like eps, pdf, svg etc?
POV-Ray does not have any sort of vector output. In general ray-tracers (like POV-Ray) work by tracing rays from screen pixels into the scene, to work out what colour pixels should be - so they are inherently pixel based.
To 'ray-trace' to a vector format, you would have to calculate illumination values for each visible polygon, and then project the polygons onto the viewing angle as vectors. I don't know of any available software that can do this.
I'll also add that if you take an image and convert it using most tools to a vector format like pdf or eps, it basically just wraps up the bitmap data into an array and still can only render it pixel by pixel.
But if you render with POV-Ray at high contrast so that you can convert it to a black and white image, you can then use free software called potrace to convert it to true vector graphics.
Firstly, you can export the POV-Ray graphic to an asc file. To do so, see the link and answer given here.
Then you can open this asc file in Meshlab, and then export it in the STL or OBJ format. Finally you can import the STL or the OBJ file in Wings3D, which allows to export to eps and svg.

Is it possible to manipulate real photos with SVG? Resize, create thumbnails

I'm looking for something like GD Library but for JavaScript. I read about SVG.
SVG images can be searched, indexed, scripted, and compressed
SVG graphics do NOT lose any quality if they are zoomed or resized
SVG images are scalable
But only images I could see in examples that SVG manipulates with are simple rectangles, circles, polylines and so on. Just children's free-hand drawing images. And I still don't understand is it possible to manipulate real photos with SVG?
SVG is meant for vector graphics, not raster images like JPEG.
http://en.wikipedia.org/wiki/Scalable_Vector_Graphics

How can 2D text be reflected onto 3D mesh surface?

How can a 2D text be reflected onto 3D mesh surface in C# ?
Thanks in advance.
Cemo
Render the text to a texture and use the texture on the mesh.

Resources