how to make add-on to add quadball to add-mesh command?

for sub-d sphere like modeling you need a quad ball. any idea how to write an add-on so the add mesh command has this as an option?


there is already a polysphere in one of the addon
can u use this ?

~http://blender.stackexchange.com/questions/1349/scripting-metaballs-with-negative-influence

happy bl

No that poly sphere is only usable when using in high res

the low res version has the same bad shape as a cube you subdivided smooth once.

compare the poly sphere sub-d level 2 with a circle you will see that the poly sphere feels like a smoothed cube

Actually I was thinking so if the obj import makes the meshes it must read the data out of a file.

So maybe the commands for mesh object making are in the obj importer.

This is the mesh data:

WaveFront *.obj file (generated by Autodesk ATF)

g Body1

v -12.774209 -12.774209 -12.774209
v -12.774209 12.774209 -12.774209
v 0.000000 -17.121244 -17.121244
v 0.000000 17.121244 -17.121244
v 12.774209 -12.774209 -12.774209
v 12.774209 12.774209 -12.774209
v -17.121244 -17.121244 0.000000
v -17.121244 17.121244 0.000000
v -0.000000 -24.685204 -0.000000
v -0.000000 24.685204 -0.000000
v 17.121244 -17.121244 0.000000
v 17.121244 17.121244 0.000000
v -12.774209 -12.774209 12.774209
v -12.774209 12.774209 12.774209
v -0.000000 -17.121244 17.121244
v 0.000000 17.121244 17.121244
v 12.774209 -12.774209 12.774209
v 12.774209 12.774209 12.774209
v -17.121244 0.000000 -17.121244
v 17.121244 0.000000 -17.121244
v -24.685204 -0.000000 -0.000000
v 24.685204 -0.000000 -0.000000
v -17.121244 0.000000 17.121244
v 17.121244 0.000000 17.121244
v 0.000000 -0.000000 -24.685204
v -0.000000 -0.000000 24.685204
f 3 1 19 25
f 1 3 9 7
f 1 7 21 19
f 7 9 15 13
f 7 13 23 21
f 13 15 26 23
f 25 19 2 4
f 19 21 8 2
f 21 23 14 8
f 23 26 16 14
f 8 10 4 2
f 14 16 10 8
f 5 3 25 20
f 3 5 11 9
f 9 11 17 15
f 15 17 24 26
f 20 25 4 6
f 26 24 18 16
f 10 12 6 4
f 16 18 12 10
f 11 5 20 22
f 17 11 22 24
f 22 20 6 12
f 24 22 12 18

26 vertices

0 texture params

0 normals

24 facets

1 groups

Wrong post, I was thinking round cube: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/Add_Mesh_Extra_Objects

did u test the obj importer to see if it works well?

try to upload the obj file so we can test it

can you show a pic of what you mean !

thanks
happy bl

same issue - all those are based on a cube that is sub-d in multiple levels.
the problem is that all starts with a square layout and that does not smooth round and round squarish

the quadball is a hexagon based start where all CVs are placed so that it perfectly represents a sphere surface

I copied in the obj data. but what I want is to have an add-on in add-mesh so you dont need to import the mesh all the time.

actually Blender foundation should make this quadball a standard for modeling.

here is a screenshot showing you the issue with all cube based sphere like shapes

the blue sphere is my quadball more or less a real sphere

the blender cube version clearly goes beyonf the circular profile of a sphere


You already have a mesh addon creator ‘CreaPrim’ it’s in the testing category, select the object give it a name and hit ‘Create primitive’ button it’ll save the script in the addons folder and you can enable it as an addon and it’ll appear in the add menu.