Guiniture
02-12-2009, 02:03 PM
Hi all,
I am working on a project where I need to create splines using points stored in an array then attach these splines so that I can use the CrossSection modifier to create a surface between the two splines.
I have an easy way for creating the splines using points in an array:
fn arch_gen pointA pointB pointC =
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #smooth #curve PointA
addKnot ss 1 #smooth #curve PointB
addKnot ss 1 #smooth #curve PointC
updateShape ss
ss
)
newSpline = arch_gen array[1] array[2] array[3]
Now I thought that I could simply create curves and attach them using:
addandweld $shape01 $shape02 0.0
This does weld the curves together but does not then work when I try to create a surface between the curves using:
addmodifier $shape01 (CrossSection()) ui:on
addmodifier $shape01 (Surface()) ui:on
Is there a way in which I can attach the created shapes using the attach method you can use in the 'geometry' modifier panel for the shape?
Any help here would be really appreciated!!
Cheers,
I am working on a project where I need to create splines using points stored in an array then attach these splines so that I can use the CrossSection modifier to create a surface between the two splines.
I have an easy way for creating the splines using points in an array:
fn arch_gen pointA pointB pointC =
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #smooth #curve PointA
addKnot ss 1 #smooth #curve PointB
addKnot ss 1 #smooth #curve PointC
updateShape ss
ss
)
newSpline = arch_gen array[1] array[2] array[3]
Now I thought that I could simply create curves and attach them using:
addandweld $shape01 $shape02 0.0
This does weld the curves together but does not then work when I try to create a surface between the curves using:
addmodifier $shape01 (CrossSection()) ui:on
addmodifier $shape01 (Surface()) ui:on
Is there a way in which I can attach the created shapes using the attach method you can use in the 'geometry' modifier panel for the shape?
Any help here would be really appreciated!!
Cheers,
