MatlabGraphicalMode​l

版本 0.6 (6.4 MB) 作者: Brandon Caasenbrood
A Matlab class for rendering mesh with responsive textures
22.0 次下载
更新时间 2023/9/11

Matlab Graphical Model Rendering-Engine

View GModel on File Exchange

Improved color maps Improved color maps Improved color maps Improved color maps Improved color maps

Improved color maps Improved color maps Improved color maps Improved color maps Improved color maps

The class Gmodel is a graphical rendering engine for triangular mesh model. The class uses the normal vector computed for the triangular faces, to derive the appriopriate texture related to a Material Capture -- also called matcap. The tool comes equipped with a brouad collection of materials, including copper, steel, eggshell, jade, matte plastics, and a bunch of common textures used in Computer Graphics. On top of that, using callback function, rotating the model automatically updates the material texture.

Usage:

obj = Gmodel('Bunny.stl') % or any other .stl file
obj.bake.render();        % baking needs to be called at least once, render calls the figure

You can also force a texture update by calling

obj.update();

This can be useful in for-loops.

Installation

We highly recommend installing the essentials package using the Matlab Package Manager (MPM), which can be easily installed via the Matlab Add-On Mananger . Once MPM is installed, the essential package can be installed by the following command in the Matlab command window

mpm install matessentials --all-paths
mpm install gmodel --all-paths

This will generate a folder under MATLAB Add-Ons/Collections/mpm/mobeets-mpm-c626429/mpm-packages/gmodel/.

引用格式

Brandon Caasenbrood (2024). MatlabGraphicalModel (https://github.com/BJCaasenbrood/MatlabGraphicalModel), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2023a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

matcap

matcap/img

src

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
0.6

minor updates

0.5

See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.5

0.4

Minor update

0.3.0.0

See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.3

0.2

See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.2

0.1

See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.1

0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库