Three-dimensional shape data generation apparatus, three-dimensional modeling apparatus, and non-transitory computer readable medium storing three-dimensional shape data generation program
A three-dimensional shape data generation apparatus includes: a processor configured to obtain three-dimensional shape data in which a three-dimensional shape is represented by plural three-dimensional elements and an attribute is assigned to each of the plural three-dimensional elements, and divide the three-dimensional shape into plural partial shapes according to the attributes to generate plural pieces of three-dimensional shape data.
1. A three-dimensional shape data generation apparatus comprising:
a processor configured to
obtain three-dimensional shape data in which a three-dimensional shape is represented by a plurality of voxels and a property of the voxels is assigned to each of the plurality of three-dimensional voxels, wherein the three-dimensional data is associated with an object to be outputted and the object has the three-dimensional shape,
divide the three-dimensional shape into a plurality of partial shapes according to a threshold value of the property of the voxels to generate a plurality of pieces of three-dimensional shape data,
wherein the processor is configured to divide the three-dimensional shape into the plurality of partial shapes according to the threshold value of the property of the voxels to generate the plurality of pieces of three-dimensional shape data comprising:
receive an upper threshold value and a lower threshold value, and divide the three-dimensional shape into a plurality of partial shapes according to a comparison result of attribute values of the property of the voxels and the upper threshold value and the lower threshold value to generate the plurality of pieces of three-dimensional shape data, and
convert the three-dimensional shape data of a partial shape of the plurality of partial shapes into mesh data by removing a corner portion of a voxel within the partial shape.
2. The three-dimensional shape data generation apparatus according to claim 1 , wherein the processor is further configured to convert three-dimensional shape data of the partial shape into the mesh data by using a predetermined method, wherein the processor is further configured to convert the three-dimensional shape data of the partial shape into the mesh data by using the predetermined method comprising:
the processor sets a second surface representing a shape of the three-dimensional shape data of the partial shape before the partial shape is divided from the three-dimensional shape instead of a first surface set by the predetermined method, to a voxel which is not an edge before the division but becomes the edge after the division to convert the three-dimensional shape data of the partial shape into the mesh data.
3. The three-dimensional shape data generation apparatus according to claim 2 , wherein the processor sets the first surface set by the predetermined method to a three-dimensional voxel which exists inside the three-dimensional shape before the division to perform conversion into the mesh data.
4. The three-dimensional shape data generation apparatus according to claim 1 , wherein the processor receives a plurality of the threshold values comprising the upper threshold value and the lower threshold value.
5. The three-dimensional shape data generation apparatus according to claim 1 , wherein the processor receives a plurality of the threshold values comprising the upper threshold value and the lower threshold value.
6. The three-dimensional shape data generation apparatus according to claim 2 , wherein the processor receives a plurality of the threshold values comprising the upper threshold value and the lower threshold value.
7. The three-dimensional shape data generation apparatus according to claim 1 ,
wherein the processor causes the display to display the threshold value on the histogram.
8. A three-dimensional modeling apparatus comprising:
a modeling unit configured to model a three-dimensional shape based on three-dimensional shape data generated by the three-dimensional shape data generation apparatus according to claim 1 .
9. A non-transitory computer readable medium storing a three-dimensional shape data generation program causing a computer to execute a process, the process comprising:
obtaining three-dimensional shape data in which a three-dimensional shape is represented by a plurality of voxels and a property of the voxels is assigned to each of the plurality of three-dimensional voxels, wherein the three-dimensional data is an object to be outputted and the object has the three-dimensional shape,
dividing the three-dimensional shape into a plurality of partial shapes according to a threshold value of the property of voxels to generate a plurality of pieces of three-dimensional shape data, wherein the process of dividing the three-dimensional shape into the plurality of partial shapes according to the threshold value of the property of the voxels to generate the plurality of pieces of three-dimensional shape data comprising:
receiving an upper threshold value and a lower threshold value, and divide the three-dimensional shape into a plurality of partial shapes according to a comparison result of attribute values of the property of the voxels and the upper threshold value and the lower threshold value to generate the plurality of pieces of three-dimensional shape data, and
converting the three-dimensional shape data of a partial shape of the plurality of partial shapes into mesh data by removing a corner portion of a voxel within the partial shape.
10. The three-dimensional shape data generation apparatus according to claim 1 , wherein the attribute value is one of a color, a material strength, and a material ratio associated with a material of the object to be outputted.
11. The three-dimensional shape data generation apparatus according to claim 1 , wherein the processor is configured to provide a user interface for changing the threshold value by changing the position of the threshold value indicated on the histogram.