Removing extra edges and blinking faces

How can I make 3D polygons with this data? will not overlap any face and no blinking. Without changing any data manually or with conditions without logic that match all other data. Thanks.

// data json
{
    "type": "FeatureCollection",
    "features": [
        {
            "id": "2",
            "type": "Feature",
            "properties": {
                "type": "wall",
                "sf_tilt": 90.0,
                "sf_orient": -32.0
            },
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            2683852.4747061506,
                            1252231.906523199,
                            432.63800066187565
                        ],
                        [
                            2683852.4747061506,
                            1252231.906523199,
                            439.65200066187566
                        ],
                        [
                            2683852.200003838,
                            1252232.076997624,
                            439.39600066187137
                        ],
                        [
                            2683852.200003838,
                            1252232.076997624,
                            435.1080006618714
                        ],
                        [
                            2683850.956000865,
                            1252232.8489994688,
                            435.10800066185215
                        ],
                        [
                            2683850.956000865,
                            1252232.8489994688,
                            433.2940106618521
                        ],
                        [
                            2683852.4747061506,
                            1252231.906523199,
                            432.63800066187565
                        ]
                    ]
                ]
            }
        },
        {
            "id": "5",
            "type": "Feature",
            "properties": {
                "type": "wall",
                "sf_tilt": 90.0,
                "sf_orient": 146.0
            },
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            2683853.20506449,
                            1252236.2645763762,
                            435.108
                        ],
                        [
                            2683854.3609999996,
                            1252235.484,
                            435.108
                        ],
                        [
                            2683854.3609999996,
                            1252235.4839999997,
                            439.3960000002033
                        ],
                        [
                            2683854.6319999998,
                            1252235.301,
                            439.6550000030672
                        ],
                        [
                            2683854.632,
                            1252235.3009999997,
                            433.7652148642271
                        ],
                        [
                            2683853.2050644904,
                            1252236.264576376,
                            433.74104702266015
                        ],
                        [
                            2683853.20506449,
                            1252236.2645763762,
                            435.108
                        ]
                    ]
                ]
            }
        }
    ]
}

Depends - what’s the source / format of this data?

All data same format like these 2 features data

Yes - but what produces this JSON? What software does it come from?

Most of the time formats have at least some minimal documentation describing fields, their possible values, and how these values should be interpreted.

Having just a JSON won’t be much help, since you’re free to interpret these “coordinates” in kinda any way - which may work for this specific JSON with these specific values, but break as soon as you try to parse another one.

I think geojson data same format, and only with coordinates, sf_tilt, and sf_orient, it is possible to make geometry in threejs.
Here is a complete data, only have to show walls and roofs
data01.json (190.5 KB)

Ah, in that case you should be able to use ShapeGeometry and just use coordinates as points to construct the shape (as per this and this paragraphs.) You could technically construct a BufferGeometry by hand, but ShapeGeometry will just be a bit way easier and faster.

Thanks. Maybe this is the actual idea. I tried to make it with shape but couldn’t do it accurate way. If I can get an example code with threejs will help me much.