@all3dp/material-structure

中文文档
2.32.0发布于 2020/03/19MITCommonJS近 30 天下载 4651

The all3dp material structure

原始使用文档
文档目录8 节
  1. Editing
  2. Process
  3. Using
  4. Structure
  5. Templates
  6. Order Materials
  7. Important
  8. Empty yaml files

Material structure

Editing

The whole material structure is held inside the ./material-structure folder. Please just edit files there.

Process

Please only edit on a feature branch, never edit the master directly. File a pull request to master. If you like to release the structure, checkout master and run npm run release major | minor | patch. This bumps the version and creates a new release. Then travis deploys it to npm.

Using

The files in export should be imported by the server.

Structure

The material-structure folder contains the all material groups. They are stored in the material-groups folder. Each material group is represented by a folder e.g. metals. Each folder representing a material group contains a index.yml which holds the data of this material group.

name: Metals

Each material group contains a materials folder holding all materials inside this group e.g. brass. Inside each material folder there is again a index.yml representing the material.

name: Nylon
description: >-
  Nylon (polyamide) is a fantastic all-round material with great monetary value.
  Thanks to its strength and flexibility, it’s extremely versatile, suitable for functional parts, jewelry, and many more applications.
  When thin, it’s flexible enough for springs – when thick, it’s strong enough for functional parts.
  It comes in many colors, and its surface can be polished and dyed.
  This material is 3D printed on industrial grade 3D printers, offering the highest quality, using a process called selective laser sintering (SLS).
featuredImage: gallery/material-sf.jpg
descriptionShort: 'Best, cheap all-round material'

Also there is a folder finish-groups which holds all finish groups belonging to the material e.g polished. The finish group folder also holds a index.yml which represents its data.

properties:
  printingMethod: Selective Laser Sintering (SLS)
  printingMethodShort: SLS
  printingServiceName:
    shapeways: Strong Flexible Plastic
    imaterialise: Polyamide (SLS)
    sculpteo: Nylon PA12
  materialSpec: EOS PA 2200 (PA 12)
  flexibility: 4
  levelOfDetail: 3
  freedomOfDesign: 4
  postProcessing: 4
  waterproof: false
  foodSafe: false
  dishwasherSafe: true
  interlockingAndEnclosedParts: true
  recyclable: false
materialName: Nylon
name: Raw
featuredImage: gallery/material-sf.jpg
description: >-
  Professionally 3D printed nylon, raw and dyed, with natural color options available.
descriptionShort: 'Solid or dyed nylon with a raw surface'

Inside a finish group there is a material-configs folder holding all material configs for this group. All files inside this folder represent a material config e.g.

name: Natural
color: Natural Multicolor
colorCode: '#98A0A3'
colorImage: color_images/sandstone_full_color.jpg
legacyId: '{}'
printingService:
  sculpteo:
    productionTimeFast: 2
    productionTimeSlow: 4
    materialId: color_plastic
    printingMethodShort: Binder Jetting
    printingMethod: Binder Jetting (Bronze Infusion)
    materialName: Composite Multicolor
  shapeways:
    productionTimeFast: 6
    productionTimeSlow: 8
    materialId: '26'
    printingMethodShort: Binder Jetting
    printingMethod: Binder Jetting (Bronze Infusion)
    materialName: Full Color Sandstone
  imaterialise:
    productionTimeFast: 6
    productionTimeSlow: 8
    materialId: 38cb671d-4df6-458c-9f17-85cf3d28b990
    finishId: cb1b1042-aff5-4c6c-af2a-96dfbbfcfa58
    printingMethodShort: Binder Jetting
    printingMethod: Binder Jetting (Bronze Infusion)
    materialName: Multicolor

Templates

On each level there are files beginning wit an underscore (_). These are templates which inherit their values to all children.

E.g. the file _material.yml inherits all attributes to each material in the structure under this folder.

Order Materials

To order the files just prefix them with a string like 1-....

Important

Empty yaml files

An empty file needs to have the content {} which is the yaml representation of an empty object.

版本与发布记录

@all3dp/material-structure 共发布 121 个版本,首次发布于 2018/01/03;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.32.0latest2020/03/196 年前
2.31.02020/03/166 年前
2.30.12020/03/136 年前
2.30.02020/03/136 年前
2.29.02020/03/106 年前
2.28.02020/03/056 年前

关于 @all3dp/material-structure 的常见问题

@all3dp/material-structure 是什么?

The all3dp material structure

如何安装 @all3dp/material-structure?

在项目目录运行 npm install @all3dp/material-structure,或使用 pnpm add / yarn add / bun add。

@all3dp/material-structure 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/all3dp__material-structure 是否存在。

@all3dp/material-structure 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@all3dp/material-structure 可以商用吗?

@all3dp/material-structure 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@all3dp/material-structure 的下载量有多少?

根据 npm 官方下载统计,@all3dp/material-structure 在 2026/10/06 – 2026/11/04 这 30 天内被下载 4,651 次,日均约 155 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@all3dp/material-structure 还在维护吗?

最新版本 2.32.0 发布于 2020/03/19(6 年前);至今共发布 121 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/01/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。