Skip to content

Issue with bent pipe segments #14

@Kostesan

Description

@Kostesan

Hi there

If you create a pipe segment with an outwards-facing bent/elbow, the two segments do not interface correctly.

Image Image

I used this code:
//Define a few control points in space via their x-y-z coordinates.
List aControlPoints = new List() {
new Vector3(0, 0, 0),
new Vector3(0, 80, 0),
new Vector3(0, 120, 50),
};

            //create frame
            Frames aFrames = new Frames(aControlPoints, Vector3.UnitY);

            //define pipe segment
            BasePipeSegment oShape = new BasePipeSegment(aFrames, 10, 12,
                        new LineModulation(MathF.PI),
                        new LineModulation(0.5f * MathF.PI),
                BasePipeSegment.EMethod.MID_RANGE);
            Voxels oVoxels = oShape.voxConstruct();
            Sh.PreviewVoxels(oVoxels, Cp.clrGray);

Any advice?

Thanks.

Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions