DESCRIPTION

This Cube with a side relationship of 3.0 to 2.0 to 1.0 with a phase on one side of 0.1 can easily be used as a base to construct more complex models. I constructed it with a python script in blender therefore i'm able to construct easily all relationships needed. Here is the script:

import bpy

from bpy import data as D, context as C

import bmeshimport mathimport mathutilsfrom mathutils import Vectorfrom math import radians

variables

length = 3.0width = 2.0height = 1.0

bevel_angle = 30bevel_z = 0.1bevel_xy = bevel_z / math.tan(radians(bevel_angle))

vectors

vec_01 = mathutils.Vector((-length / 2, -width / 2, 0.0))vec_02 = mathutils.Vector((-length / 2, width / 2, 0.0))vec_03 = mathutils.Vector((length / 2, -width / 2, 0.0))vec_04 = mathutils.Vector((length / 2, width / 2, 0.0))

vec_05 = mathutils.Vector((-length / 2, -width / 2, height - bevel_z))vec_06 = mathutils.Vector((-length / 2, width / 2, height - bevel_z))vec_07 = mathutils.Vector((length / 2, -width / 2, height - bevel_z))vec_08 = mathutils.Vector((length / 2, width / 2, height - bevel_z))

vec_09 = mathutils.Vector((-length / 2 + bevel_xy, -width / 2 + bevel_xy, height))vec_10 = mathutils.Vector((-length / 2 + bevel_xy, width / 2 - bevel_xy, height))vec_11 = mathutils.Vector((length / 2 - bevel_xy, -width / 2 + bevel_xy, height))vec_12 = mathutils.Vector((length / 2 - bevel_xy, width / 2 - bevel_xy, height))

Make a new BMesh

bm = bmesh.new()

make vertexes

verts = [vec_01, vec_02, vec_03, vec_04, vec_05, vec_06, vec_07, vec_08, vec_09, vec_10, vec_11, vec_12]

create facesEach face is a tuple that contains the indicesthat point to elements in the array above. Ann-gon will only have one tuple, but for eachadditional face, add another tuple.

faces = [(0, 1, 3), (3, 2, 0), {0, 1, 5}, {5, 4, 0}, {2, 3, 7}, {7, 6, 2}, {0, 2, 6}, {6, 4, 0}, {1, 3, 7}, {7, 5, 1}, {4, 8, 6}, {8, 6, 10}, {5, 9, 7}, {9, 7, 11}, {4, 5, 8}, {5, 8, 9}, {6, 7, 10}, {7, 10, 11}, {8, 9, 11}, {11, 10, 8}]

If the faces list above is specified, thenthe edges list needs only to be an empty list,i.e. [] .

edges = []

Create mesh from above data.

mesh_name = modCubemesh_data = D.meshes.new(mesh_name)mesh_data.from_pydata(verts, edges, faces)

Returns True if any invalid geometry was removed.

corrections = mesh_data.validate( verbose=True, clean_customdata=True)

Load BMesh with mesh data.

bm = bmesh.new()bm.from_mesh(mesh_data)

bm.to_mesh(mesh_data)bm.free()mesh_obj = D.objects.new(mesh_data.name, mesh_data)C.collection.objects.link(mesh_obj)

make normals consistent

bpy.ops.object.select_all(action='DESELECT')mesh_obj.select_set(True)bpy.context.view_layer.objects.active = mesh_obj

go edit mode

bpy.ops.object.mode_set(mode='EDIT')

select al faces

bpy.ops.mesh.select_all(action='SELECT')

recalculate outside normals

bpy.ops.mesh.normals_make_consistent(inside=False)

go object mode again

bpy.ops.object.editmode_toggle()

REVIEWS & COMMENTS

See what other buyers think about this model - real feedback on quality,
accuracy, and usability.
There are no reviews or comments yet. Please be the first one to write it.

Simple 3D Cube with a phase Free low-poly 3D model

Royalty Free License (no AI)
Hire
Like this model to show appreciation to the designer.
See how many times this model was viewed.
Share this model to support the designer and boost their visibility.
File format
STL
Stereolithography<br />File Size: 1.06 KB
Provided by designer
Information and details shared directly by the model's designer.
3D Features
The model includes animations (movement or actions) that can be played in supported software or engines.
The model has a skeleton or bone structure, making it ready for posing or animation.
PBR
Uses Physically Based Rendering materials, which give the model realistic lighting and surface properties.
Textures
The model includes image files (textures) that add color, patterns, or detail to its surfaces.
Materials
The model has material settings that define how surfaces look (color, shine, transparency, etc.).
UV Mapping
The model's surfaces are mapped to a 2D image, allowing textures to display correctly.
Plugins Used
Some external plugins were used to create the model. These may be required for full functionality.
3D printing
Indicates whether the designer marked this model as suitable for 3D printing.
Model is not 3D printable
The designer indicates this model is intended for digital use only (rendering, animation, or AR/VR) and not for 3D printing.
Geometry
Polygon mesh
A model built from polygons (triangles or quads) connected in a mesh.
12 vertices
The number of points (corners) that define the shape of the model's polygons.
Unwrapped UVs
Publish date
Model ID
Chat