2
$\begingroup$

I'm looking for a way to do some basic parametric modeling in blender.

I have 3 pieces i'd like to use as a base. 1 starting section, 1 middle and 1 ending.

Is it possible to generate a combined model onto a spline using the starting and end section to close off the model with one or more middle sections based on the total length of the spline?

Example: enter image description here

$\endgroup$
2
$\begingroup$

Starting from this thread (Make a 3D tube with a bezier curve), I figured that the curve modifier had to be used somewhere. First the spline and the length however.

Use the following spline settings:

spline disable radius; enable strecht & bound clamp

For the length of your object, you can use the array modifier with "Fit Type" set to 'Fit Curve' and then select the curve you want to trace. Then pick your start & end cap. Next up append the curve modifier and take the beziercurve as the object. (deformation Axis = x)

Tracing a curve in length, shape and append end-caps

Lastly figure out how to reposition your endcaps so the vertices close up. (I haven't fully grasped the math behind this myself).

EDIT: Considering the end caps. Turns out the array matches them perfectly when you just 'snap attach' them in edit mode to the middle section that you want to array. As in the picture below.

End Cap placement

|improve this answer|||||
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.