#!/usr/bin/env python
#
# test_overlay_volume_3d.py -
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#

import pytest

from . import run_cli_tests


pytestmark = pytest.mark.overlayclitest


cli_tests = """
3d
3d  -in linear
3d  -in spline

3d   -ns 5
3d   -ns 10
3d   -ns 25
3d   -ns 100
3d   -ns 200

3d   -bf 0.001
3d   -bf 0.25
3d   -bf 0.5
3d   -bf 0.75
3d   -bf 0.9

3d   -r 25
3d   -r 50
3d   -r 75

3d   -cp 25 0   0
3d   -cp 50 0   0
3d   -cp 75 0   0

3d   -cp 50  0   0
3d   -cp 50  0 -90
3d   -cp 50 90 -90

3d   -cp 50 0 0 -cp 50  0 -90
3d   -cp 50 0 0 -cp 50 45 -45
3d   -cp 50 0 0 -cp 50 45 -45 -cp 50  90 90
3d   -cp 50 0 0 -cp 50 45 -45 -cp 50 135 45

3d -s 0
3d -s 1
3d -s 3
3d -s 6

3d -cp 25 0 0  -cp 50 90 45 -cp 50 90 -45 -m intersection
3d -cp 75 0 0  -cp 50 90 45 -cp 50 90 -45 -m union
3d -cp 75 0 0  -cp 50 90 45 -cp 50 90 -45 -m complement
"""



def test_overlay_volume_3d():
    extras = {
    }
    run_cli_tests('test_overlay_volume_3d', cli_tests, extras=extras, scene='3d')
