Convert 3D Patch Data to 3d array/matrix (from surf, patch, or VRML import)

Posted on 2009-04-24
Last Modified: 2013-11-25
Good day everyone,

I currently have several 3D meshes/patches I've created by either:
a) Generating them with patch/surf commands
b) Importing VRML files exported from 3D graphics design applications, like MAYA

I am trying to find a way to convert these 3D polygon-based models into a 3D array of voxels so that I can essentially define a 3D coordinate, and know the pixel intensity value at that point. This would allow me to essentially quantize the 3D model into discrete points, and perform histogram analysis on it.

Any help would be very much appreciated. Thank you in advance,
Question by:dogbertius
    LVL 15

    Accepted Solution

    Can you give an example of how your data look like? May be you can provide a code to generate small dataset, or just attach a small mat-file (rename it to txt).

    BTW, did you have a look at TMW Virtual Reality Toolbox (now it's Simulink 3D Animation)?
    LVL 1

    Author Comment

    Yes, I did. Basically, I have to use the Virtual Reality Toolbox to import the VRML files that Maya, 3d Studio, etc, export. I'm able to display those, but the basic premise is that I have to convert patch data to a 3D array.

    Thank you.
    LVL 15

    Expert Comment

    Please give more information about your dataset. Which class are you using in Matlab? What node type? What is a structure of you VRML?

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    This is an explanation of a simple data model to help parse a JSON feed
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now