( v1, v2, element, material )
| 13949 | } |
| 13950 | |
| 13951 | function renderLine( v1, v2, element, material ) { |
| 13952 | |
| 13953 | setOpacity( material.opacity ); |
| 13954 | setBlending( material.blending ); |
| 13955 | |
| 13956 | _context.beginPath(); |
| 13957 | _context.moveTo( v1.positionScreen.x, v1.positionScreen.y ); |
| 13958 | _context.lineTo( v2.positionScreen.x, v2.positionScreen.y ); |
| 13959 | |
| 13960 | if ( material instanceof THREE.LineBasicMaterial ) { |
| 13961 | |
| 13962 | setLineWidth( material.linewidth ); |
| 13963 | setLineCap( material.linecap ); |
| 13964 | setLineJoin( material.linejoin ); |
| 13965 | setStrokeStyle( material.color.getStyle() ); |
| 13966 | setDashAndGap( null, null ); |
| 13967 | |
| 13968 | _context.stroke(); |
| 13969 | _elemBox.expandByScalar( material.linewidth * 2 ); |
| 13970 | |
| 13971 | } else if ( material instanceof THREE.LineDashedMaterial ) { |
| 13972 | |
| 13973 | setLineWidth( material.linewidth ); |
| 13974 | setLineCap( material.linecap ); |
| 13975 | setLineJoin( material.linejoin ); |
| 13976 | setStrokeStyle( material.color.getStyle() ); |
| 13977 | setDashAndGap( material.dashSize, material.gapSize ); |
| 13978 | |
| 13979 | _context.stroke(); |
| 13980 | _elemBox.expandByScalar( material.linewidth * 2 ); |
| 13981 | |
| 13982 | } |
| 13983 | |
| 13984 | } |
| 13985 | |
| 13986 | function renderFace3( v1, v2, v3, uv1, uv2, uv3, element, material ) { |
| 13987 |
no test coverage detected